/* ADHD Day Companion - Modern Marketing Design */
:root {
    /* Primary Brand Colors - Modern & Professional */
    --primary-color: #6366f1; /* Modern indigo */
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --primary-rgb: 99, 102, 241;
    
    /* Secondary Accent Colors */
    --secondary-color: #06b6d4; /* Cyan accent */
    --secondary-dark: #0891b2;
    --secondary-light: #67e8f9;
    
    /* Success & Positive Actions */
    --success-color: #10b981; /* Emerald green */
    --success-dark: #059669;
    --success-light: #6ee7b7;
    
    /* Warning & Attention */
    --warning-color: #f59e0b; /* Amber */
    --warning-dark: #d97706;
    --warning-light: #fcd34d;
    
    /* Danger & Critical */
    --danger-color: #ef4444; /* Red */
    --danger-dark: #dc2626;
    --danger-light: #fca5a5;
    
    /* Info & Neutral */
    --info-color: #8b5cf6; /* Purple */
    --info-dark: #7c3aed;
    --info-light: #c4b5fd;
    
    /* Background & Surface Colors */
    --bg-primary: #0f172a; /* Dark slate */
    --bg-secondary: #1e293b; /* Slate 800 */
    --bg-surface: #334155; /* Slate 700 */
    --bg-elevated: #475569; /* Slate 600 */
    
    /* Text Colors */
    --text-primary: #f8fafc; /* Light text */
    --text-secondary: #cbd5e1; /* Slate 300 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --gradient-success: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-secondary) 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    --gradient-cool: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Modern Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Add padding-top for fixed navbar across all pages */
    padding-top: 100px;
}

/* Responsive navbar spacing adjustments */
@media (max-width: 768px) {
    body {
        /* Reduced padding for mobile devices */
        padding-top: 85px;
    }
}

@media (max-width: 576px) {
    body {
        /* Further reduced padding for small mobile devices */
        padding-top: 55px;
    }
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

/* Navigation Enhancement */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 70px; /* Set consistent navbar height */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand:hover {
    color: var(--primary-light) !important;
}

.nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
}

/* Specific styling for multi-line nav items */
.nav-link.text-center {
    text-align: center;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-link.text-center div {
    display: block;
}

/* Fix excessive spacing between logo and first menu item */
.navbar-nav.ms-auto {
    margin-left: auto !important;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .navbar-nav.ms-auto {
        margin-left: 2rem !important; /* Reduced from default auto */
    }
}

/* Modern Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem 1rem; /* Reduced top padding since body now has navbar spacing */
}

/* Card System Redesign */
.card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Modern Button System */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--info-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-info {
    background: var(--gradient-secondary);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: var(--gradient-warm);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--warning-dark) 0%, #e91e63 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e91e63 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-dark) 0%, #c2185b 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

/* Modern Form System */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
}

.form-check-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modern Table System */
.table {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 1rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Modern Alert System */
.alert {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--success-light);
    border-color: var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
    color: var(--warning-light);
    border-color: var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: var(--danger-light);
    border-color: var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--info-light);
    border-color: var(--info-color);
}

/* Chat Interface (Coach) */
.chat-message {
    display: flex;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.chat-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--shadow-md);
}

.chat-avatar.user {
    background: var(--gradient-primary);
    color: white;
}

.chat-avatar.bot {
    background: var(--gradient-success);
    color: white;
}

.chat-bubble {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.chat-bubble.user {
    background: var(--gradient-primary);
    color: white;
    margin-left: auto;
}

.chat-bubble.bot {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Statistics Cards */
.stat-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0.25rem 1rem 1.5rem 1rem; /* Minimized top padding for mobile since body has navbar spacing */
    }
}
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-header {
        padding: 1.25rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .chat-bubble {
        max-width: 85%;
    }
    
    .chat-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .display-3 {
    font-size: 3.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* PDF Guide specific hero section */
.guida-hero-section {
    background: var(--gradient-primary);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    padding: 2rem 0 4rem 0;
    position: relative;
    overflow: hidden;
    margin-top: -100px; /* Negative margin to pull up and eliminate gap */
    padding-top: calc(100px + 2rem); /* Add padding back to maintain content spacing */
}

/* Mobile adjustments for guida hero */
@media (max-width: 768px) {
    .guida-hero-section {
        margin-top: -85px;
        padding-top: calc(85px + 2rem);
    }
}

@media (max-width: 576px) {
    .guida-hero-section {
        margin-top: -55px;
        padding-top: calc(55px + 1.5rem);
    }
}

/* Enhanced Badge Styling */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navbar Brand Animation */
.navbar-brand {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Enhanced Stat Cards */
.stat-card:hover .stat-number {
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced Button Hover Effects */
.btn-primary:hover {
    animation: buttonGlow 0.5s ease-in-out;
}

@keyframes buttonGlow {
    0% { box-shadow: var(--shadow-md); }
    50% { box-shadow: var(--shadow-glow), var(--shadow-xl); }
    100% { box-shadow: var(--shadow-lg), var(--shadow-glow); }
}

/* Enhanced Card Hover Effects */
.card:hover {
    animation: cardFloat 0.3s ease-out;
}

@keyframes cardFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

/* Sparkle Effect for Icons */
.fa-heart {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.2) rotate(0deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

/* Tool Cards Styling - Maximum Visibility */
.tool-card {
    transition: all 0.3s ease;
    border: 4px solid rgba(99, 102, 241, 0.6);
    background: var(--gradient-card);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    min-height: 450px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.8);
}

.tool-card:hover::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
}

.tool-icon {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.tool-card:hover .tool-icon {
    transform: scale(1.2);
}

.tool-card .fa-3x {
    font-size: 4.5rem !important;
}

.tool-card .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.tool-card .card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-card .card-body {
    padding: 2.5rem !important;
}

.tool-card .btn {
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.tool-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Enhanced animations for maximum visibility */
@keyframes cardPulse {
    0%, 100% { 
        box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.6);
    }
    50% { 
        box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.4);
        border-color: rgba(99, 102, 241, 0.8);
    }
}

@keyframes iconGlow {
    0%, 100% { 
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }
    50% { 
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    }
}

/* Apply animations to make cards stand out */
.tool-card {
    animation: cardPulse 3s ease-in-out infinite;
}

.tool-card .tool-icon {
    animation: iconGlow 2s ease-in-out infinite;
}

/* Chat Interface Styles */
.chat-container {
    background: rgba(15, 23, 42, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.chat-message-group {
    margin-bottom: 2rem;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.ai-message {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    word-wrap: break-word;
    box-shadow: var(--shadow-md);
}

.user-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 0.5rem;
}

.ai-bubble {
    background: var(--gradient-card);
    color: var(--text-primary);
    border-bottom-left-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.message-header {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.message-content {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced textarea for better mobile experience */
.coach-textarea {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    padding: 1rem !important;
    border-radius: var(--radius-lg) !important;
    border: 2px solid rgba(99, 102, 241, 0.3) !important;
    background: rgba(15, 23, 42, 0.5) !important;
    color: var(--text-primary) !important;
    resize: vertical;
    min-height: 120px;
}

.coach-textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
    background: rgba(15, 23, 42, 0.7) !important;
}

.coach-textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

/* Mobile responsiveness for chat */
@media (max-width: 768px) {
    .message-bubble {
        max-width: 90%;
        padding: 0.8rem 1rem;
    }
    
    .coach-textarea {
        font-size: 1rem !important;
        min-height: 100px;
    }
    
    .chat-container {
        padding: 0.5rem;
    }
}

.tool-icon {
    animation: float 3s ease-in-out infinite;
}

/* Locked Tool Styling */
.tool-locked {
    opacity: 0.6;
    position: relative;
}

.tool-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(108, 117, 125, 0.1) 50%, transparent 60%);
    background-size: 20px 20px;
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.tool-locked .tool-icon {
    filter: grayscale(50%);
}

.tool-locked:hover {
    opacity: 0.8;
    transform: none;
}

/* Elite Badge Styling */
.badge.bg-warning {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #1a202c !important;
    font-weight: 600;
    text-shadow: none;
}

.tool-icon:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
    
    .tool-card {
        margin-bottom: 1rem;
    }
    
    .tool-card .card-body {
        padding: 2rem 1rem;
    }
    
    .tool-icon {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Form Improvements for Mobile */
@media (max-width: 576px) {
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .form-label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Enhanced navbar for mobile */
.navbar-brand {
    font-size: 1.25rem;
}

@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: var(--radius-md);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Testimonials Preview Styles for Homepage */
.testimonial-preview-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
}

.testimonial-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

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

.preview-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 0.75rem;
}

.preview-info {
    flex-grow: 1;
}

.preview-name {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-size: 0.95rem;
}

.preview-location {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: inline-block;
}

.preview-verified {
    color: #059669;
    font-size: 1.1rem;
}

.preview-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.preview-stars i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.preview-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    font-style: italic;
    padding-left: 0.75rem;
    border-left: 3px solid #e5e7eb;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive for Testimonials */
@media (max-width: 768px) {
    .testimonial-preview-card {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .preview-avatar {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .preview-name {
        font-size: 0.9rem;
    }
    
    .preview-location {
        font-size: 0.65rem;
    }
    
    .preview-verified {
        font-size: 1rem;
    }
    
    .preview-stars {
        margin-bottom: 0.75rem;
    }
    
    .preview-stars i {
        font-size: 0.8rem;
    }
    
    .preview-quote {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Testimonials Section Title Styling */
.testimonials-title {
    color: #1f2937 !important;
    font-size: 2.8rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 3px 6px rgba(0,0,0,0.2) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.testimonials-title i {
    color: #dc2626 !important;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
}

.testimonials-subtitle {
    font-size: 1.4rem !important;
    color: #059669 !important;
    font-weight: 600 !important;
    margin-bottom: 3rem !important;
    text-shadow: 0 2px 4px rgba(5, 150, 105, 0.3) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
}

@media (max-width: 768px) {
    .testimonials-title {
        font-size: 2.2rem !important;
    }
    
    .testimonials-subtitle {
        font-size: 1.2rem !important;
    }
}

/* Horizontal Testimonials Carousel */
.horizontal-testimonials-carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonials-viewport {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.carousel-arrow {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
    z-index: 10;
}

.carousel-arrow:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.testimonials-container {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    width: 100%;
}

.testimonial-card {
    flex: 0 0 320px;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
    height: 240px;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-info {
    flex-grow: 1;
}

.testimonial-name {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-size: 0.9rem;
}

.testimonial-location {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: inline-block;
}

.testimonial-verified {
    color: #059669;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 0.85rem;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    font-style: italic;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Reduce space between navbar and content on mobile - excluding stress management */
    .guida-hero-section, 
    .pdf-guides-hero, 
    .main-content:not(.stress-management) {
        margin-top: -20px !important;
        padding-top: 20px !important;
    }
    
    .horizontal-testimonials-carousel {
        padding: 0 0.5rem;
        overflow: hidden;
    }
    
    .carousel-wrapper {
        gap: 0.5rem;
        overflow: hidden;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .testimonials-viewport {
        overflow: hidden;
        flex: 1;
    }
    
    .testimonials-container {
        gap: 0;
        width: auto;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .testimonial-card {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: auto;
        padding: 1.25rem;
        height: 220px;
        box-sizing: border-box;
        margin-right: 0;
    }
    
    .testimonial-avatar {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .testimonial-name {
        font-size: 0.85rem;
    }
    
    .testimonial-location {
        font-size: 0.65rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        width: 100%;
        height: 200px;
        padding: 1rem;
        box-sizing: border-box;
        margin-right: 0;
    }
    
    .testimonial-text {
        -webkit-line-clamp: 3;
        font-size: 0.8rem;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Toast Notification Styles */
.toast {
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: slideInFromRight 0.3s ease-out;
    font-weight: 500;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-body {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.toast .btn-close {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* Mobile responsive toasts */
@media (max-width: 768px) {
    .toast-container {
        left: 1rem !important;
        right: 1rem !important;
        padding: 1rem !important;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .toast-body {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* Reward Delete Button Styling */
.btn-outline-danger {
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* PDF Guide Styles */
.pdf-mockup-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.pdf-mockup-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.pdf-mockup-image:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}

.pdf-glow-effect {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px;
    opacity: 0.3;
    filter: blur(20px);
    z-index: 1;
    animation: pdf-glow 3s ease-in-out infinite alternate;
}

@keyframes pdf-glow {
    0% {
        opacity: 0.3;
        filter: blur(20px);
    }
    100% {
        opacity: 0.5;
        filter: blur(25px);
    }
}

.pdf-content {
    padding: 0 30px;
}

.pdf-features .feature-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding-left: 15px;
    margin-left: -15px;
}

.pdf-features .feature-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.pdf-testimonial {
    position: relative;
    overflow: hidden;
}

.pdf-testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 60px;
    color: #667eea;
    opacity: 0.2;
    font-family: serif;
}

@media (max-width: 991px) {
    .pdf-content {
        padding: 30px 0 0 0;
        text-align: center;
    }
    
    .pdf-mockup-container {
        margin-bottom: 30px;
    }
}