/* Fixed Settings Icon */
.settings-icon {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.settings-icon:hover {
    background-color: #0056b3;
}

/* Slide-Out Drawer */
.settings-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 85%; /* Changed from fixed 300px to relative width */
    max-width: 300px; /* Added max-width for larger screens */
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1040;
    overflow-y: auto;
}

.settings-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #007bff;
    color: white;
}

.drawer-header h5 {
    margin: 0;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-menu li {
    border-bottom: 1px solid #ddd;
}

.drawer-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.drawer-menu li a:hover {
    background-color: #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .settings-icon {
        width: 35px;
        height: 35px;
        right: 10px;
    }
    
    .drawer-menu li a {
        padding: 12px 15px; /* Slightly larger touch target on small screens */
    }
}