/* Employee Details Page Styles */

.employee-details-container {
    width: 100% !important;
    max-width: none !important;
    padding: 1rem !important;
    box-sizing: border-box;
    min-height: 80vh;
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    text-align: center;
}

.loading-text {
    color: #6b7280;
}

.error-alert {
    margin: 1.5rem 0;
}

/* Employee Header */
.employee-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.employee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.employee-name {
    margin: 0 0 0.5rem 0 !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.employee-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #6b7280;
    align-items: center;
    font-size: 0.875rem;
}

.employee-meta strong {
    color: #111827;
}

.status-chip {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.three-col-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-height: 200px;
    margin-bottom: 20px;
}

/* Card Headers */
.card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
}

.card-header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    margin: 0 !important;
    font-weight: 600 !important;
    color: #111827 !important;
    font-size: 1rem !important;
}

.section-icon {
    color: #3b82f6 !important;
}

.toggle-icon {
    color: #6b7280 !important;
    transition: transform 0.3s ease;
}

/* Card Content */
.card-content {
    padding: 0.75rem 1rem 1rem;
}

.card-content.expanded {
    display: block;
}

.single-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Info Items */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0;
    font-weight: 600;
}

.info-item span {
    line-height: 1.2rem;
    word-break: break-word;
    color: #111827;
    font-size: 0.875rem;
}

.info-item span:empty::before {
    content: 'N/A';
    color: #9ca3af;
    font-style: italic;
}

.highlight-value {
    font-weight: 500 !important;
    color: #3b82f6 !important;
}

.id-value-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.visibility-toggle {
    margin-left: 0.25rem;
}

/* Banking Card */
.banking-card .card-content {
    padding: 0;
}

.bank-section {
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.bank-section:last-child {
    border-bottom: none;
}

.employee-details-container .bank-section h4 {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 600;
    border-left: 4px solid #3b82f6;
}

.bank-section .info-row {
    padding: 1rem;
}

@media (max-width: 1200px) {
    .info-cards-grid,
    .three-col-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .employee-details-container {
        padding: 0.75rem !important;
    }
    
    .employee-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .employee-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .info-cards-grid,
    .three-col-layout {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}