.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

// Welcome Section
.welcome-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: translate(50%, -50%);
    }

    .welcome-content {
        position: relative;
        z-index: 1;

        h1 {
            margin: 0 0 0.5rem 0;
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        p {
            margin: 0;
            font-size: 1.1rem;
            opacity: 0.9;
        }
    }

    .welcome-actions {
        position: relative;
        z-index: 1;
    }

    .action-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        color: white;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        cursor: pointer;

        &:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        svg {
            width: 18px;
            height: 18px;
        }
    }
}

// Stats Grid
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;

        &.active {
            background: rgba(34, 197, 94, 0.1);
            color: #16a34a;
        }

        &.pending {
            background: rgba(251, 191, 36, 0.1);
            color: #d97706;
        }

        &.completed {
            background: rgba(59, 130, 246, 0.1);
            color: #2563eb;
        }

        &.total {
            background: rgba(168, 85, 247, 0.1);
            color: #9333ea;
        }

        svg {
            width: 24px;
            height: 24px;
        }
    }

    .stat-content {
        flex: 1;

        .stat-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 0.25rem;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #6b7280;
            font-weight: 500;
        }
    }
}

// Section Styles
.section {
    margin-bottom: 2rem;

    .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;

        h2 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            color: #1f2937;
        }

        .view-all-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: none;
            color: #1e40af;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;

            &:hover {
                color: #1e3a8a;
            }

            svg {
                width: 16px;
                height: 16px;
            }
        }
    }
}

// Transactions List
.transactions-list {
    display: grid;
    gap: 1rem;
}

// Loading State
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;

    .loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #e5e7eb;
        border-top: 3px solid #1e40af;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 1rem;
    }

    .loading-text {
        color: #6b7280;
        font-size: 0.9rem;
        margin: 0;
    }
}

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

// Empty State
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;

    .empty-icon {
        width: 64px;
        height: 64px;
        background: rgba(30, 64, 175, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1e40af;
        margin-bottom: 1.5rem;

        svg {
            width: 32px;
            height: 32px;
        }
    }

    h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #1f2937;
    }

    p {
        margin: 0 0 1.5rem 0;
        color: #6b7280;
        font-size: 0.9rem;
    }

    .action-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: #1e40af;
        border: none;
        border-radius: 8px;
        color: white;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        cursor: pointer;

        &:hover {
            background: #1e3a8a;
            transform: translateY(-2px);
        }
    }
}

.transaction-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: #1e40af;
    }

    .transaction-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;

        .transaction-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1f2937;
        }

        .transaction-status {
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;

            &.active {
                background: rgba(34, 197, 94, 0.1);
                color: #16a34a;
            }

            &.pending {
                background: rgba(251, 191, 36, 0.1);
                color: #d97706;
            }

            &.completed {
                background: rgba(59, 130, 246, 0.1);
                color: #2563eb;
            }
        }
    }

    .transaction-details {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;

        .transaction-amount {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1f2937;
        }

        .transaction-date {
            font-size: 0.9rem;
            color: #6b7280;
        }
    }

    .transaction-progress {
        display: flex;
        align-items: center;
        gap: 1rem;

        .progress-bar {
            flex: 1;
            height: 6px;
            background: #e5e7eb;
            border-radius: 3px;
            overflow: hidden;

            .progress-fill {
                height: 100%;
                background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
                border-radius: 3px;
                transition: width 0.3s ease;
            }
        }

        .progress-text {
            font-size: 0.8rem;
            color: #6b7280;
            font-weight: 500;
            min-width: 80px;
        }
    }
}

// Quick Actions
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: #1e40af;
    }

    .action-icon {
        width: 48px;
        height: 48px;
        background: rgba(30, 64, 175, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1e40af;
        flex-shrink: 0;

        svg {
            width: 24px;
            height: 24px;
        }
    }

    .action-content {
        flex: 1;

        .action-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 0.25rem;
        }

        .action-description {
            font-size: 0.9rem;
            color: #6b7280;
        }
    }
}

// Mobile Responsive
@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;

        .welcome-content h1 {
            font-size: 1.5rem;
        }

        .welcome-content p {
            font-size: 1rem;
        }
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .transaction-card {
        padding: 1rem;

        .transaction-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }

        .transaction-details {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 1.5rem;

        .welcome-content h1 {
            font-size: 1.25rem;
        }
    }

    .stat-card {
        padding: 1rem;

        .stat-icon {
            width: 40px;
            height: 40px;

            svg {
                width: 20px;
                height: 20px;
            }
        }

        .stat-content .stat-value {
            font-size: 1.5rem;
        }
    }

    .quick-action-btn {
        padding: 1rem;

        .action-icon {
            width: 40px;
            height: 40px;

            svg {
                width: 20px;
                height: 20px;
            }
        }
    }
}

.attendance-chart {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}

.attendance-empty {
    text-align: center;
    color: #94a3b8;
    padding: 2rem 0;
    margin: 0;
}
