:root {
    --primary-main: #005596;
    --primary-dark: #003a66;
    --primary-light: #e6f0f7;
    --secondary-main: #ed1c24;
    --secondary-dark: #c1121c;
    --accent: #ffcc00;
    --background-main: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    height: 320px;
    padding-top: 60px;
    border-radius: 0 0 100px 0;
    color: var(--white);
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-title {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 400;
}

.logo-container {
    background: var(--white);
    padding: 15px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

/* Main Content */
.main-content {
    margin-top: -120px;
    position: relative;
    z-index: 20;
    padding-bottom: 100px;
}

.module-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 18px;
}

/* Đổi màu tiêu đề đầu tiên đè lên nền header thành trắng */
.main-content .module-section:first-child .section-title {
    color: var(--white);
}

/* Grid & Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideUp 0.6s ease-out forwards;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 14px;
    color: #cbd5e1;
    transition: var(--transition);
}

.card:hover .card-arrow {
    color: var(--primary-main);
    transform: translateX(5px);
}

.card.featured {
    grid-column: span 1; /* Có thể đổi thành span 2 cho các module chính nếu muốn */
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive Customization */
@media (max-width: 768px) {
    .header {
        height: auto;
        padding-bottom: 140px;
        border-radius: 0 0 40px 0;
    }
    .header-content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }
    .logo-container {
        width: 60px;
        height: 60px;
        position: absolute;
        top: 40px;
        right: 24px;
    }
    .brand-title {
        font-size: 32px;
    }
    .main-content {
        margin-top: -100px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
