/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Brand Colors */
    --primary-color: #00A693;
    --primary-dark: #00887a;
    --primary-light: #00BFA5;
    --brand-teal: #00BFA5;
    --brand-blue: #00A3FF;
    --brand-blue-dark: #0088D9;
    
    /* Button & Accent Colors */
    --button-gradient: linear-gradient(135deg, #00A3FF 0%, #0088D9 100%);
    --button-hover: #007ACC;
    --accent-red: #FF4B4B;
    --accent-pink: #FF3366;
    --accent-purple: #A855F7;
    --accent-yellow: #FFB84E;
    
    /* Text Colors */
    --text-color: #0B0B0B;
    --text-headline: #1C1C1C;
    --text-light: #6B7C85;
    
    /* Background Colors */
    --bg-color: #E8F7F6;
    --bg-gradient: linear-gradient(135deg, #E8F7F6 0%, #F0FAF9 50%, #FFFFFF 100%);
    --card-bg: #FFFFFF;
    --navbar-bg: #FFFFFF;
    
    /* UI Neutrals */
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 166, 147, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 166, 147, 0.25);
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #00A3FF 0%, #00A693 50%, #00BFA5 100%);
    --gradient-light: linear-gradient(135deg, #00BFA5 0%, #00A693 100%);
    --gradient-blue: linear-gradient(135deg, #00A3FF 0%, #0088D9 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 166, 147, 0.8) 0%, rgba(0, 191, 165, 0.8) 100%);
    
    /* Secondary/Accent */
    --secondary-color: #00BFA5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 166, 147, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 163, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 191, 165, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER ===== */
.header {
    background: var(--gradient);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #E8F7F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 166, 147, 0.2);
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 166, 147, 0.08);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.nav-btn {
    padding: 0.85rem 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 166, 147, 0.2);
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 166, 147, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover {
    background: rgba(232, 247, 246, 0.5);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow);
    color: var(--primary-dark);
}

.nav-btn.active {
    background: var(--button-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 166, 147, 0.3);
    transform: translateY(-2px);
    font-weight: 700;
}

.nav-dropdown:hover .nav-dropdown-btn {
    background: rgba(232, 247, 246, 0.5);
    border-color: var(--primary-color);
}

.nav-dropdown .nav-dropdown-btn.active {
    background: var(--button-gradient);
    color: white;
    border-color: transparent;
}

.nav-btn.active::before {
    display: none;
}

/* ===== DROPDOWN NAVIGATION ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: var(--shadow-lg), 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 166, 147, 0.2);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 1rem 0;
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-menu-large {
    min-width: 600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.dropdown-column {
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(232, 247, 246, 0.5);
    transform: translateX(5px);
}

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

.dropdown-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 166, 147, 0.1);
    border-radius: 10px;
}

.dropdown-item strong {
    display: block;
    color: var(--text-headline);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.dropdown-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 166, 147, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 166, 147, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(0, 166, 147, 0.15);
}

.card-title {
    font-size: 2.2rem;
    color: var(--text-headline);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.card-content {
    font-size: 1rem;
    color: var(--text-color);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===== QUICK TIPS FEATURE ===== */
.quick-tips-section {
    background: linear-gradient(135deg, rgba(255, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    border: 2px solid;
    border-image: var(--gradient) 1;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 157, 0.15);
    position: relative;
    overflow: hidden;
}

.quick-tips-section {
    background: linear-gradient(135deg, rgba(232, 247, 246, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    border: 2px solid;
    border-image: var(--gradient-blue) 1;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 166, 147, 0.12);
    position: relative;
    overflow: hidden;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quick-tips-title {
    color: var(--text-headline);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.quick-tips-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.skin-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skin-type-btn {
    padding: 0.9rem 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 166, 147, 0.3);
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skin-type-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 166, 147, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.skin-type-btn:hover::before {
    width: 300px;
    height: 300px;
}

.skin-type-btn:hover {
    background: rgba(232, 247, 246, 0.6);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow);
    color: var(--primary-dark);
}

.skin-type-btn.active {
    background: var(--button-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 166, 147, 0.3);
    transform: translateY(-3px) scale(1.05);
    font-weight: 700;
}

.skin-type-btn.active::before {
    display: none;
}

.personalized-tips {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(0, 166, 147, 0.2);
    margin-top: 1.5rem;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.tips-header h4 {
    color: var(--text-headline);
    font-size: 1.3rem;
    margin: 0;
}

.close-tips-btn {
    background: var(--text-light);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-tips-btn:hover {
    background: var(--brand-teal);
}

.tips-content {
    margin-bottom: 1rem;
}

.tips-list {
    margin-bottom: 1.5rem;
}

.tips-list h5 {
    color: var(--text-headline);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tips-list ul {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.tips-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-teal);
    font-weight: bold;
}

.recommended-products-quick {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 10px;
}

.recommended-products-quick h5 {
    color: var(--text-headline);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tips-list h5 {
    color: var(--text-headline);
}

.products-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tag {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 247, 246, 0.95) 100%);
    padding: 0.65rem 1.25rem;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 166, 147, 0.15);
    transition: all 0.3s ease;
    display: inline-block;
}

.product-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 166, 147, 0.25);
    background: var(--gradient-light);
    color: white;
    border-color: transparent;
}

.get-full-routine-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--button-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 166, 147, 0.25);
    letter-spacing: 0.5px;
}

.get-full-routine-btn::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.get-full-routine-btn:hover::after {
    transform: translateX(5px);
}

.get-full-routine-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(0, 122, 204, 0.4);
    background: linear-gradient(135deg, var(--button-hover) 0%, var(--brand-blue-dark) 100%);
}

/* ===== SKIN TYPES ===== */
.skin-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skin-type-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(232, 247, 246, 0.9) 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.skin-type-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    transition: width 0.4s ease;
}

.skin-type-item:hover::before {
    width: 100%;
    opacity: 0.05;
}

.skin-type-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-dark);
}

.skin-type-item h3 {
    position: relative;
    z-index: 1;
    color: var(--text-headline);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.skin-type-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.data-table thead {
    background: var(--gradient);
    color: white;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(232, 247, 246, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 166, 147, 0.1);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== ROUTINE SECTION ===== */
.routine-category {
    margin-bottom: 3rem;
}

.routine-category h3 {
    font-size: 1.5rem;
    color: var(--text-headline);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-teal);
}

.routine-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, #fff 0%, #E8F7F6 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.step-number {
    background: var(--button-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-headline);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.routine-period h4 {
    color: var(--text-headline);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== DISEASES SECTION ===== */
.disease-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.disease-item {
    background: linear-gradient(135deg, #fff 0%, #E8F7F6 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--brand-teal);
}

.disease-item h3 {
    color: var(--brand-teal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.disease-item p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-color);
}

.disease-item strong {
    color: var(--text-headline);
}

.disclaimer {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    color: #856404;
    font-style: italic;
    margin-top: 1rem;
}

/* ===== TOOLS SECTION ===== */
.tools-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tool-subsection {
    width: 100%;
}

.tool-subsection .card {
    margin-bottom: 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tool-item {
    background: linear-gradient(135deg, #fff 0%, #E8F7F6 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

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

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-item h3 {
    color: var(--text-headline);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tool-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tool-status {
    display: inline-block;
    background: var(--button-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.nav-feature {
    background: var(--button-gradient);
    color: white !important;
    border: none !important;
}

.nav-feature:hover {
    background: linear-gradient(135deg, var(--button-hover) 0%, var(--brand-blue-dark) 100%);
}

/* ===== AI CHAT ASSISTANT ===== */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    background: var(--bg-color);
    margin-bottom: 1rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--button-gradient);
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.message-content {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send-btn {
    padding: 0.75rem 2rem;
    background: var(--button-gradient);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, var(--button-hover) 0%, var(--brand-blue-dark) 100%);
    transform: scale(1.05);
}

/* ===== ROUTINE GENERATOR ===== */
.routine-generator {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-headline);
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.action-btn {
    background: var(--button-gradient);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 166, 147, 0.25);
    letter-spacing: 0.5px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 400px;
    height: 400px;
}

.action-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(0, 122, 204, 0.4);
    background: linear-gradient(135deg, var(--button-hover) 0%, var(--brand-blue-dark) 100%);
}

.action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.routine-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #E8F7F6 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.routine-period {
    margin-bottom: 1.5rem;
}


.routine-period ul {
    list-style: none;
    padding: 0;
}

.routine-period li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.routine-additions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--border-color);
}

/* ===== PROGRESS TRACKER ===== */
.progress-tracker {
    max-width: 1000px;
    margin: 0 auto;
}

.progress-form {
    background: linear-gradient(135deg, #fff 0%, #E8F7F6 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.progress-form h3 {
    color: var(--text-headline);
    margin-bottom: 1rem;
}

.form-range {
    width: 100%;
    margin: 0.5rem 0;
}

#score-display,
#validation-display {
    display: inline-block;
    margin-left: 1rem;
    font-weight: bold;
    color: var(--text-headline);
    font-size: 1.2rem;
}

.progress-chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.progress-chart-container h3 {
    color: var(--text-headline);
    margin-bottom: 1rem;
}

#progress-chart {
    width: 100%;
    max-width: 100%;
}

.progress-entries {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.progress-entries h3 {
    color: var(--text-headline);
    margin-bottom: 1rem;
}

.progress-entry {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.entry-score {
    color: var(--text-headline);
    font-weight: 600;
}

#score-display,
#validation-display {
    color: var(--text-headline);
}

.progress-image {
    max-width: 200px;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* ===== RECOMMENDATIONS ===== */
.recommendations-engine {
    max-width: 1000px;
    margin: 0 auto;
}

.recommendations-result {
    margin-top: 2rem;
}

.rec-section {
    background: linear-gradient(135deg, #fff 0%, #E8F7F6 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.rec-section h3 {
    color: var(--text-headline);
    margin-bottom: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.product-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card h4 {
    color: var(--text-headline);
    margin-bottom: 0.5rem;
}

.product-type {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.product-ingredient {
    font-size: 0.85rem;
    color: var(--brand-teal);
    margin-bottom: 0.5rem;
}

.product-rating {
    font-weight: 600;
    color: #ffc107;
}

.foods-list ul {
    list-style: none;
    padding: 0;
}

.foods-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 5px;
    border-left: 3px solid var(--accent-color);
}

/* ===== DOCTOR REVIEW SYSTEM ===== */
.doctor-review-system {
    max-width: 1000px;
    margin: 0 auto;
}

.review-form {
    background: linear-gradient(135deg, #fff 0%, #E8F7F6 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.review-form h3 {
    color: var(--text-headline);
    margin-bottom: 1rem;
}

.review-results {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.review-results h3 {
    color: var(--text-headline);
    margin-bottom: 1rem;
}

.review-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--brand-teal);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-status {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.review-item p {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #1a1f22 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== SKIN SCANNER / IMAGE UPLOAD ===== */
.skin-scanner-container {
    max-width: 1000px;
    margin: 0 auto;
}

.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(232, 247, 246, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--brand-teal);
    background: linear-gradient(135deg, rgba(0, 166, 147, 0.1) 0%, rgba(232, 247, 246, 0.6) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.upload-area.dragover {
    border-color: var(--brand-teal);
    background: rgba(0, 166, 147, 0.15);
    transform: scale(1.02);
}

.upload-placeholder {
    text-align: center;
    color: var(--text-headline);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.upload-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.upload-tip {
    color: var(--brand-teal);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.detail-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.health-score-display {
    text-align: center;
}

.loading-subtext {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.upload-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: var(--shadow);
}

.analysis-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 15px;
    border: 1px solid rgba(0, 166, 147, 0.2);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 166, 147, 0.2);
}

.analysis-header h3 {
    color: var(--text-headline);
    margin: 0;
}

.condition-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.analysis-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.detail-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--brand-teal);
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.detail-card h4 {
    color: var(--text-headline);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-teal);
    text-transform: capitalize;
    margin: 0;
}

.concerns-list,
.products-list,
.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.concern-tag,
.product-tag-analysis,
.ingredient-tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 166, 147, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-headline);
    font-weight: 600;
    border: 1px solid rgba(0, 166, 147, 0.3);
}

.concern-tag {
    background: rgba(255, 75, 75, 0.1);
    border-color: rgba(255, 75, 75, 0.3);
    color: var(--accent-red);
}

.ingredient-tag {
    background: rgba(0, 163, 255, 0.1);
    border-color: rgba(0, 163, 255, 0.3);
    color: var(--brand-blue);
}

.routine-text {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

.analysis-loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 166, 147, 0.2);
    border-top-color: var(--brand-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .dropdown-menu {
        position: fixed;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 90%;
        max-width: 500px;
    }

    .dropdown-menu-large {
        grid-template-columns: 1fr;
        min-width: auto;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }

    .card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .skin-types {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }

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

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .chat-messages {
        height: 300px;
    }

    .nav-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

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

    .checkbox-group {
        flex-direction: column;
    }

    .skin-type-selector {
        flex-direction: column;
    }

    .skin-type-btn {
        width: 100%;
    }

    .products-quick-list {
        flex-direction: column;
    }

    .product-tag {
        width: 100%;
        text-align: center;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-teal);
}

