/* ===== MODERN STYLE CSS - VSP Health System ===== */

:root {
    --primary-color: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --secondary-color: #64748b;
    --accent-color: #fbbf24;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #22c55e;
    
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    margin: 0;
    padding: 0;
}

/* ===== MODERN HEADER STYLES ===== */
.modern-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px; /* Giảm chiều cao header */
}

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
    padding-top: 70px; /* Giảm padding-top để thu nhỏ khoảng trắng */
    min-height: calc(100vh - 60px); /* Điều chỉnh theo chiều cao header mới */
}

.container-fluid {
    padding: 0.5rem; /* Giảm padding */
}

.modern-header .navbar {
    padding: 0.25rem 0; /* Giảm padding để button không chạm đáy */
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    height: 100%;
    padding: 0.5rem 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: var(--radius-lg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
}

.brand-subtitle {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    margin-right: 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: var(--gray-50);
    transform: translateY(-1px);
}

.navbar-nav .nav-link i {
    font-size: 1rem;
}

/* Header Contact Info */
.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    white-space: nowrap;
}

.contact-item i {
    color: #22c55e;
    font-size: 1rem;
}

/* ===== LANGUAGE SELECTOR STYLES ===== */
.language-selector {
    margin-left: 1rem;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 140px;
    justify-content: space-between;
    height: 40px;
}

.language-toggle:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.language-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.flag-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.language-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.language-toggle i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.language-dropdown.active .language-toggle i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    margin-top: 0.5rem;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-form {
    margin: 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.language-option .flag-emoji {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.language-option .language-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3) var(--spacing-6);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-base);
}

/* ===== CARDS ===== */
.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: pulse-glow 3s ease-in-out infinite;
}

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-color);
    animation: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gray-50);
    color: var(--gray-900);
    padding: 4rem 0;
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

/* ===== MAIN ACTIONS SECTION ===== */
.main-actions-section {
    padding: 3rem 0;
    background: var(--white);
    margin-bottom: 15rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.action-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    animation: pulse-glow 3s ease-in-out infinite;
}

.action-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(13, 110, 253, 0.15);
    border-color: var(--primary-color);
    animation: none;
}

.action-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
}

.action-card:hover .action-title {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.action-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.action-content .btn {
    align-self: center;
    width: 140px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    gap: 0.5rem;
    border-width: 2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== COMMITMENT SECTION ===== */
.commitment-section {
    padding: 8rem 0;
    background: var(--gray-50);
    margin-top: 5rem;
}

.commitment-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-200);
    text-align: center;
    animation: pulse-glow 3s ease-in-out infinite;
}

.commitment-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.commitment-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.commitment-text {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

/* ===== SPECIALIZED SECTION ===== */
.specialized-section {
    padding: 3rem 0;
    background: var(--white);
}

.specialized-card {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.specialized-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-width: 2px !important;
}

.specialized-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 30px rgba(13, 110, 253, 0.4);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .modern-header {
        height: 55px; /* Giảm chiều cao header trên mobile */
    }
    
    .main-content {
        padding-top: 65px; /* Giảm padding-top tương ứng */
    }
    
    .header-contact {
        display: none;
    }
    
    .language-selector {
        margin-left: 0.5rem;
    }
    
    .language-toggle {
        min-width: 120px;
        padding: 0.5rem 0.75rem;
    }
    
    .language-menu {
        right: -0.5rem;
        min-width: 140px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-illustration {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .commitment-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-actions-section {
        margin-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .modern-header {
        height: 50px; /* Giảm thêm chiều cao header trên màn hình nhỏ */
    }
    
    .main-content {
        padding-top: 60px; /* Giảm padding-top tương ứng */
    }
    
    .language-toggle {
        min-width: 100px;
        padding: 0.5rem;
    }
    
    .language-toggle .language-text {
        display: none;
    }
    
    .language-menu {
        right: -1rem;
        min-width: 120px;
    }
} 