/* Independent Sidebar Styles */
.independent-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    width: 300px;
    height: 80vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-right: 2px solid rgba(0, 191, 255, 0.3);
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 191, 255, 0.3) transparent;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    border-radius: 0 8px 8px 0;
}

/* Ensure body doesn't scroll when sidebar is open */
body.sidebar-open {
    overflow-x: hidden;
}

.independent-sidebar::-webkit-scrollbar {
    width: 6px;
}

.independent-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.independent-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.3);
    border-radius: 3px;
}

.independent-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 191, 255, 0.5);
}


/* Main layout with 3-column flex structure */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container with centered layout */
.container {
    position: relative !important;
    min-height: 100vh;
    margin-left: 300px !important;
    transition: margin-left 0.3s ease;
    width: calc(100% - 300px) !important;
    padding: 20px 0 !important;
    box-sizing: border-box;
    max-width: none !important;
    display: flex;
    justify-content: center;
}

/* Center column - main content */
.center-column {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    max-width: 1560px; /* 30% wider than 1200px */
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Main content in center column */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%; /* Ensure full width of center-column */
}

/* Header alignment */
.center-column .header {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Employee grid alignment */
.center-column .employee-grid {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Main content alignment */
.center-column .main-content {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Employee grid with responsive layout */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    margin: 0;
}

/* Sidebar-specific styling with smaller text */
.independent-sidebar .search-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.independent-sidebar .search-input {
    font-size: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.independent-sidebar .search-input::placeholder {
    color: #888888;
    font-size: 11px;
}

.independent-sidebar .search-input:focus {
    border-color: #00bfff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.2);
}

.independent-sidebar .section-toggles {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    align-items: center;
    justify-items: stretch;
}

.independent-sidebar .pretty-toggle {
    font-size: 10px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.independent-sidebar .pretty-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 191, 255, 0.2);
}

.independent-sidebar .pretty-toggle .toggle-ui {
    width: 24px;
    height: 12px;
}

.independent-sidebar .pretty-toggle .toggle-ui:after {
    width: 10px;
    height: 10px;
}

.independent-sidebar .pretty-toggle input[type="checkbox"]:checked + .toggle-ui:after {
    transform: translate(10px, -50%);
}

.independent-sidebar .label-text {
    font-size: 10px;
    color: #cccccc;
}

/* Filter sections with smaller text */
.independent-sidebar .filter-section {
    margin: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.independent-sidebar .filter-section:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 191, 255, 0.1);
}

.independent-sidebar .filter-item {
    margin: 4px 0;
    padding: 4px 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.independent-sidebar .filter-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-color: rgba(0, 191, 255, 0.1);
}

.independent-sidebar .filter-summary {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 0;
    color: #00bfff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.independent-sidebar .filter-summary:hover {
    color: #00d4ff;
}

.independent-sidebar .filter-content {
    padding: 2px 0;
}

.independent-sidebar .filter-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 6px 0;
    padding: 2px 0;
}

.independent-sidebar .pretty-check {
    padding: 4px 8px;
    font-size: 9px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.independent-sidebar .pretty-check:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 191, 255, 0.1);
}

.independent-sidebar .pretty-check input[type="checkbox"] {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.independent-sidebar .pretty-check input[type="checkbox"]:checked:after {
    font-size: 10px;
    left: 1px;
    top: -1px;
}

.independent-sidebar .filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 2px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.independent-sidebar .filter-button {
    font-size: 9px;
    padding: 4px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

.independent-sidebar .filter-item-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 191, 255, 0.2), 
        rgba(255, 255, 255, 0.1), 
        rgba(0, 191, 255, 0.2), 
        transparent
    );
    margin: 2px 0;
}

.independent-sidebar .filter-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 191, 255, 0.3), 
        rgba(255, 255, 255, 0.2), 
        rgba(0, 191, 255, 0.3), 
        transparent
    );
    margin: 4px 0;
}

/* Show All and Clear buttons */
.independent-sidebar .show-all-btn,
.independent-sidebar .clear-search-btn {
    font-size: 10px;
    padding: 6px 10px;
}

.independent-sidebar .show-all-btn {
    right: 35px;
}

.independent-sidebar .clear-search-btn {
    right: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .independent-sidebar {
        width: 280px;
    }
    
    .container {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
    
    .center-column {
        flex: 0 1 auto;
        max-width: 1300px; /* 30% wider than 1000px */
        width: 100%;
    }
    
    .employee-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 1200px) {
    .center-column {
        flex: 0 1 auto;
        max-width: 1170px; /* 30% wider than 900px */
        width: 100%;
    }
}

@media (max-width: 900px) {
    .center-column {
        flex: 0 1 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .independent-sidebar .section-toggles {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .independent-sidebar {
        width: 100%;
        height: 100vh;
        top: 0;
        transform: translateY(0);
        border-radius: 0;
    }
    
    .container {
        margin-left: 0;
        width: 100%;
        padding: 0 10px;
    }
    
    .center-column {
        flex: 1;
        max-width: none;
    }
    
    .employee-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .independent-sidebar .search-section {
        margin: 10px;
        padding: 12px;
    }
    
    .independent-sidebar .section-toggles {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .independent-sidebar .filter-section {
        margin: 8px 10px;
        padding: 10px;
    }
}

