/* Layout Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
}

.header {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
    line-height: 1.2;
}

.main-title .employee-count {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #00bfff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
    background: #33ccff;
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    font-size: 1.0rem;
}

.download-text {
    white-space: nowrap;
}

.header-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.meta-text {
    color: #888888;
    font-size: 0.9rem;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    font-size: 1.1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin: 20px 0;
}

/* Employee Count Notification */
.employee-count-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.employee-count-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.employee-count-notification.hide {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}

/* Employee count tooltip styles */
.employee-count-tooltip {
    position: relative;
    cursor: pointer;
}

.employee-count-tooltip .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 200px;
    max-width: 300px;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.employee-count-tooltip .tooltip-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.95);
}

.employee-count-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.employee-count-tooltip .tooltip-title {
    font-weight: 600;
    color: #a08bb5;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.employee-count-tooltip .tooltip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.employee-count-tooltip .tooltip-list li {
    padding: 2px 0;
    color: #e5e5e5;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-toggle-buttons {
    display: flex;
    gap: 8px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.view-toggle-btn.active {
    background: #00bfff;
    color: #1a1a1a;
    border-color: #00bfff;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.toggle-icon {
    font-size: 1.1rem;
}

.export-controls {
    display: flex;
    gap: 10px;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.export-icon {
    font-size: 1.1rem;
}

/* Employee Table */
.employee-table-container {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    color: #cccccc;
}

.employee-table th {
    background: rgba(120, 120, 120, 0.15);
    color: #aaaaaa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(150, 150, 150, 0.2);
    white-space: nowrap;
}

.employee-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(100, 100, 100, 0.1);
    font-size: 0.85rem;
    vertical-align: top;
    color: #bbbbbb;
}

.employee-table tr:hover {
    background: rgba(120, 120, 120, 0.08);
}

.employee-table tr:last-child td {
    border-bottom: none;
}

/* Table responsive design */
@media (max-width: 768px) {
    .view-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .view-toggle-buttons {
        justify-content: center;
    }
    
    .employee-table-container {
        overflow-x: auto;
    }
    
    .employee-table {
        min-width: 800px;
    }
}