/* ============================================
   Payroll Dashboard Styling
   ============================================ */

/* Current Period Card */
.current-period-card {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    border-width: 2px;
}

.current-period-card .card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stat-card .card-body {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.stat-content p {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Stat Card Colors */
.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card-primary .stat-content h3 {
    color: #667eea;
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #0d6759;
}

.stat-card-success .stat-content h3 {
    color: #0d6759;
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #6c5100;
}

.stat-card-warning .stat-content h3 {
    color: #6c5100;
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #004085;
}

.stat-card-info .stat-content h3 {
    color: #004085;
}

/* List Group Styling */
.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.list-group-item i {
    width: 25px;
    margin-right: 0.5rem;
    color: #0d6efd;
}

/* Table Styling */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

    .current-period-card .row > div {
        margin-bottom: 1rem;
    }

    .current-period-card .text-end {
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .stat-card .card-body {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Loading State */
.spinner-border {
    animation-duration: 0.75s;
}
