/* CSS Variables for Design System */
:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    --gradient-success: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    
    /* Typography */
    --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;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --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;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --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);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Authentication Page Styles */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    background-attachment: fixed;
    padding: var(--spacing-4);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.auth-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: var(--spacing-10);
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease-out;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: var(--font-size-4xl);
    color: var(--gray-900);
    margin-bottom: var(--spacing-2);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-header h1 i {
    color: var(--primary-color);
    margin-right: var(--spacing-3);
    font-size: var(--font-size-5xl);
}

.auth-header p {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    font-weight: 500;
}

.auth-form-container {
    margin-bottom: 30px;
}

.auth-form-container h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.auth-form-container p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: var(--spacing-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    background: var(--white);
    color: var(--gray-900);
    font-weight: 500;
}

/* Checkbox styling */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-label:hover {
    color: #667eea;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #333;
    color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.auth-btn {
    padding: var(--spacing-4) var(--spacing-6);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    position: relative;
    overflow: hidden;
    font-family: var(--font-family);
}

.auth-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: var(--transition-normal);
}

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

.auth-btn.primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.auth-toggle {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #e1e5e9;
}

.auth-toggle p {
    color: #666;
    margin-bottom: 15px;
}

.auth-toggle-btn {
    background: none;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-toggle-btn:hover {
    background: #667eea;
    color: white;
}

.auth-skip {
    text-align: center;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e1e5e9;
}

.auth-skip p {
    color: #666;
    font-size: 0.95rem;
}

.skip-btn {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    color: #5a6fd8;
    text-decoration: none;
}

.auth-features {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

.auth-features h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.feature-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.auth-notification.success {
    background: #28a745;
}

.auth-notification.error {
    background: #dc3545;
}

.auth-notification.info {
    background: #17a2b8;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Welcome Page Styles */
.welcome-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    color: var(--white);
    background: var(--gradient-primary);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.welcome-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.welcome-content {
    max-width: 800px;
    padding: var(--spacing-8) var(--spacing-4);
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 auto;
}

.welcome-header {
    margin-bottom: var(--spacing-10);
    width: 100%;
}

.welcome-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-3);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--white) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-title i {
    margin-right: var(--spacing-4);
    color: #fbbf24;
    font-size: 4.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.welcome-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.welcome-description {
    margin-bottom: var(--spacing-8);
    animation: fadeInUp 1s ease-out 0.4s both;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.welcome-description::-webkit-scrollbar {
    width: 6px;
}

.welcome-description::-webkit-scrollbar-track {
    background: transparent;
}

.welcome-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.welcome-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.welcome-description p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto var(--spacing-6);
    width: 100%;
}

.feature-list li {
    padding: 12px 0;
    font-size: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: #ffd700;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.welcome-creator {
    margin-bottom: var(--spacing-6);
    animation: fadeInUp 1s ease-out 0.6s both;
    width: 100%;
}

.welcome-creator p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.welcome-creator strong {
    color: #ffd700;
    font-weight: 600;
}

.start-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--gray-900);
    border: none;
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-lg);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.start-btn:active {
    transform: translateY(0);
}

.start-btn i {
    font-size: 1.1rem;
}

/* Main App Styles */
.main-app {
    width: 100%;
}

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

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

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

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: var(--spacing-10);
    color: var(--white);
    background: var(--gradient-primary);
    padding: var(--spacing-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    gap: var(--spacing-4);
}

.header h1 {
    margin: 0;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    z-index: 2;
    text-align: center;
}

.header p {
    margin: 0;
    font-size: var(--font-size-base);
    opacity: 0.9;
    z-index: 2;
    max-width: 80%;
    text-align: center;
    line-height: 1.4;
}

/* Profile Button Header */
.profile-btn-header {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--white);
    font-size: var(--font-size-xl);
    backdrop-filter: blur(10px);
    z-index: 10;
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
}

.profile-btn-header:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.profile-btn-header:active {
    transform: scale(0.95);
}

/* Profile Menu Dropdown */
.profile-menu {
    position: fixed;
    top: 80px;
    right: var(--spacing-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: var(--z-modal);
    border: 1px solid var(--gray-200);
    animation: slideInUp 0.3s ease-out;
}

.profile-menu-header {
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    background: var(--gray-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-menu-header i {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

.profile-menu-header span {
    font-weight: 600;
    color: var(--gray-800);
}

.profile-menu-content {
    padding: var(--spacing-2);
}

.profile-menu-item {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.profile-menu-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.profile-menu-item i {
    width: 16px;
    text-align: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.logo-clickable:hover {
    transform: scale(1.05);
    color: #ffd700;
}

.logo-clickable:active {
    transform: scale(0.95);
}

.header h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Input section */
.input-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
}

/* Tabs */
.input-tabs {
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 32px;
    border: 1px solid rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tab-btn:hover {
    color: #1a1a1a;
    transform: translateY(-1px);
}

.tab-btn.active {
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.tab-btn span {
    position: relative;
    z-index: 1;
}

/* Tab content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Input group */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    font-weight: 400;
    -webkit-text-fill-color: #333;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    color: #333;
}

.input-wrapper input::placeholder {
    color: #999;
    opacity: 1;
    -webkit-text-fill-color: #999;
}

/* Ensure input text is always visible */
.input-wrapper input[type="text"] {
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}

.search-btn {
    position: absolute;
    right: 8px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Filter Button */
.filter-btn {
    position: absolute;
    right: 70px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

/* Advanced Filters */
.advanced-filters {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.range-slider {
    position: relative;
    padding: 10px 0;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    margin: 5px 0;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.clear-filters-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apply-filters-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-filters-btn:hover,
.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Suggestions */
.suggestions {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.suggestion-item {
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Upload area */
.upload-area {
    border: 3px dashed #e1e5e9;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.02);
}

.upload-content i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.upload-content p {
    color: #666;
    margin-bottom: 20px;
}

.upload-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-height: 44px;
    min-width: 120px;
}

.upload-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Preview area */
.preview-area {
    position: relative;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preview-area img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Results section */
.results-section {
    padding: 40px 0;
    background: transparent;
    margin-top: 40px;
}

.results-section h2 {
    margin-bottom: 32px;
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.results-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.beverage-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.beverage-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 400px;
}

.beverage-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.beverage-details:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.beverage-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.beverage-title {
    flex: 1;
}

.beverage-photo-area {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.beverage-photo-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    color: #667eea;
    transform: scale(1.02);
}

.beverage-photo-area::before {
    content: '📸';
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.beverage-photo-area::after {
    content: 'Photo Area';
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beverage-details h3 {
    margin-bottom: 16px;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.beverage-details p {
    color: #4a5568;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.beverage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Nutrition section styles */
.nutrition-section {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.nutrition-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.nutrition-section h4 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nutrition-section h4::before {
    content: '🍽️';
    font-size: 1.1rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nutrition-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.nutrition-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.nutrition-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nutrition-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

/* Serving Size Tabs */
.serving-tabs {
    margin: 24px 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.serving-tab-buttons {
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 4px;
    gap: 4px;
}

.serving-tab-btn {
    flex: 1;
    padding: 16px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    min-height: 80px;
    justify-content: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.serving-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.serving-tab-btn:hover {
    color: #1a1a1a;
    transform: translateY(-1px);
}

.serving-tab-btn.active {
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.serving-tab-btn.active::before {
    opacity: 1;
}

.serving-tab-btn .tab-emoji {
    font-size: 1.5rem;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    display: block;
}

.serving-tab-btn .tab-name {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    font-weight: 600;
}

.serving-tab-content {
    position: relative;
    min-height: 200px;
}

.serving-tab-panel {
    display: none;
    padding: 24px;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.serving-tab-panel.active {
    display: block;
}

.serving-details {
    text-align: center;
}

.serving-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.serving-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.serving-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.serving-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
}

.footer i {
    color: #ff6b6b;
    margin: 0 5px;
}

/* Menu Button and Sidebar Styles */
.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    /* Ensure it's always visible */
    visibility: visible !important;
    opacity: 1 !important;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.menu-btn i {
    font-size: 1.2rem;
    color: #667eea;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-header h3 i {
    margin-right: 10px;
    color: #ffd700;
}

.close-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sidebar-content {
    padding: 20px 0;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-btn:last-child {
    border-bottom: none;
}

.sidebar-btn i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #ffd700;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Favorites Page Styles */
.favorites-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.favorites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.favorite-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.favorite-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.favorite-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.favorite-card-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.favorite-card-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.favorite-card-actions {
    display: flex;
    gap: 10px;
}

.favorite-card-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.view-favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.remove-favorite-btn {
    background: #ff6b6b;
    color: white;
}

.remove-favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Empty State */
.empty-favorites {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.empty-state {
    text-align: center;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.start-exploring-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.start-exploring-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Favorite Button on Beverage Cards */
.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.favorite-btn i {
    font-size: 1.1rem;
    color: #ffd700;
    transition: all 0.3s ease;
}

.favorite-btn.favorited i {
    color: #ff6b6b;
    animation: heartBeat 0.6s ease;
}

/* Action Buttons Container */
.beverage-action-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* Like Button */
.like-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.like-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.like-btn.liked {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    animation: pulse 0.6s ease;
}

.like-btn.liked:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
    transform: translateY(-2px);
}

.like-count {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Featured Page Styles */
.featured-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.featured-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.featured-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-rank {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.featured-info {
    flex: 1;
}

.featured-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.featured-type {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.featured-stats {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.like-count-display, .abv-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.empty-featured {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

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

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

/* History Page Styles */
.history-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.history-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
}

.history-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.history-item-time {
    font-size: 0.8rem;
    color: #666;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.history-item-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.history-item-actions {
    display: flex;
    gap: 8px;
}

.history-item-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.view-history-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.remove-history-btn {
    background: #ff6b6b;
    color: white;
}

.remove-history-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Empty History State */
.empty-history {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* History Actions */
.history-actions {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.clear-history-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.clear-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Search Method Indicators */
.search-method {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
}

.search-method i {
    font-size: 0.7rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-title i {
        font-size: 3rem;
        margin-right: 15px;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .welcome-content {
        padding: var(--spacing-4);
        max-width: 100%;
        min-height: 100vh;
        justify-content: center;
    }

    .welcome-description {
        max-height: 50vh;
        margin-bottom: var(--spacing-4);
    }

    .feature-list {
        max-width: 100%;
        margin: 0 auto var(--spacing-4);
    }
    
    .feature-list {
        max-width: 100%;
    }
    
    .feature-list li {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .start-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .input-section {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 20px;
        min-height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .upload-content {
        width: 100%;
    }
    
    .upload-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        min-height: 50px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Mobile modal styles */
    .mobile-upload-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-upload-modal button {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
    }
    
    .beverage-info {
        text-align: center;
    }
    
    .beverage-details {
        padding: 24px;
    }
    
    .beverage-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .beverage-photo-area {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .input-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .tab-btn {
        justify-content: flex-start;
    }
    
    /* Mobile serving tabs */
    .serving-tab-buttons {
        flex-direction: column;
    }
    
    .serving-tab-btn {
        min-height: 60px;
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .serving-tab-btn .tab-emoji {
        font-size: 1.2rem;
    }
    
    .serving-tab-btn .tab-name {
        font-size: 0.75rem;
    }
    
    .serving-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }

    .auth-page {
        padding: 10px;
    }

    .auth-container {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-form-container h2 {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .auth-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }

    .pinboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-4);
        padding: var(--spacing-2);
    }

    .pinboard-item {
        padding: var(--spacing-4);
    }

    .pinboard-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

    .profile-menu {
        right: var(--spacing-2);
        min-width: 180px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error states */
.success {
    border-color: #28a745 !important;
    background: #f8fff9 !important;
}

.error {
    border-color: #dc3545 !important;
    background: #fff8f8 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Profile Page Styles */
.profile-page {
    display: none;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.profile-section {
    padding: 30px;
    border-bottom: 1px solid #e1e5e9;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.info-item label {
    font-weight: 600;
    color: #333;
}

.info-item span {
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.stat-card i {
    font-size: 2rem;
    color: #667eea;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.favorites-list {
    display: grid;
    gap: 15px;
}

.favorite-drink-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.favorite-drink-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.drink-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.drink-type {
    color: #666;
    font-size: 0.9rem;
    background: #e1e5e9;
    padding: 4px 8px;
    border-radius: 6px;
}

.drink-actions {
    display: flex;
    gap: 10px;
}

.drink-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drink-btn:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

.profile-actions {
    display: flex;
    justify-content: center;
    padding: 30px;
}

.profile-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Enhanced Profile Styles */
.profile-value {
    color: #667eea;
    font-weight: 600;
}

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

.profile-btn.secondary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

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

.profile-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.profile-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.profile-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3);
}

.drink-abv {
    font-size: 0.8rem;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.drink-btn.remove {
    background: #f44336;
    color: white;
}

.drink-btn.remove:hover {
    background: #d32f2f;
} 

/* Dashboard Styles */
.dashboard-page {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: none;
}

/* Pinboard Dashboard */
.pinboard-container {
    padding: var(--spacing-6);
    max-width: 1200px;
    margin: 0 auto;
}

.pinboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-6);
    padding: var(--spacing-4);
}

.pinboard-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.pinboard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pinboard-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pinboard-item:active {
    transform: translateY(-2px);
}

.pinboard-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-4);
    position: relative;
    font-size: var(--font-size-2xl);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.pinboard-icon.premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.pinboard-icon .premium-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-color);
    color: var(--white);
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.pinboard-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-2);
}

.pinboard-item p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

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

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.dashboard-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-section h3 i {
    color: #667eea;
}

.activity-item,
.favorite-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
}

.activity-item:hover,
.favorite-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

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

.activity-content,
.favorite-content {
    flex: 1;
}

.activity-title,
.favorite-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.activity-time,
.favorite-type {
    font-size: 0.9rem;
    color: #666;
}

.no-activity,
.no-favorites {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.empty-dashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
} 

/* Review System Styles */
.reviews-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

.reviews-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-section h3 i {
    color: #ffc107;
}

.reviews-summary {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.average-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.stars {
    color: #ffc107;
    font-size: 1.5rem;
}

.review-count {
    color: #666;
    font-size: 0.9rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-date {
    color: #666;
    font-size: 0.8rem;
}

.review-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-actions {
    display: flex;
    justify-content: flex-end;
}

.helpful-btn {
    background: none;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 8px 12px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.helpful-btn:hover {
    background: #f8f9ff;
    border-color: #667eea;
    color: #667eea;
}

.review-form {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.review-form h4 {
    color: #333;
    margin-bottom: 15px;
}

.rating-input {
    margin-bottom: 15px;
}

.rating-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating i:hover,
.star-rating i.fas {
    color: #ffc107;
}

.review-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.review-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-review-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.write-review-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.write-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.loading-reviews {
    text-align: center;
    color: #666;
    padding: 20px;
}

.no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.error-loading {
    text-align: center;
    color: #f44336;
    padding: 20px;
} 

/* Night Tracker Page Styles */
.tracking-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Session Controls */
.session-controls {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.session-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-info h3 i {
    color: #667eea;
}

.session-info p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.session-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.session-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.start-session-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.start-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.end-session-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.end-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.reset-session-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.reset-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.alcohol-card .card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.calories-card .card-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.sobriety-card .card-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.card-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-content p {
    margin: 0 0 3px 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
}

.card-content .unit {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Add Drink Section */
.add-drink-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.add-drink-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-drink-section h3 i {
    color: #667eea;
}

.add-drink-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.add-drink-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.add-drink-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-drink-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-drink-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.drink-suggestions {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Drink List Section */
.drink-list-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.drink-list-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drink-list-section h3 i {
    color: #667eea;
}

.drink-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drink-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drink-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.drink-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drink-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.drink-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.drink-time {
    color: #999;
    font-size: 0.8rem;
}

.drink-remove {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.drink-remove:hover {
    background: #ee5a24;
    transform: scale(1.05);
}

.empty-drinks {
    text-align: center;
    padding: 40px 20px;
}

/* Nutrition Details */
.nutrition-details {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nutrition-details h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nutrition-details h3 i {
    color: #667eea;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.nutrition-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.nutrition-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nutrition-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.nutrition-value {
    display: block;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* Safety Tips */
.safety-tips {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: white;
}

.safety-tips h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-tips h3 i {
    color: #fff;
}

.tips-content p {
    margin: 0 0 10px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.tips-content ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.tips-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.tips-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Sobriety Status Colors */
.sobriety-card.sober .card-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.sobriety-card.buzzed .card-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.sobriety-card.drunk .card-icon {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.sobriety-card.very-drunk .card-icon {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .session-buttons {
        flex-direction: column;
    }
    
    .add-drink-input {
        flex-direction: column;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .drink-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .drink-details {
        flex-wrap: wrap;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196F3;
}

.notification.warning {
    background: #ff9800;
}

/* Edit Profile Modal Styles */
.edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.edit-profile-container {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

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

.edit-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #e1e5e9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.edit-profile-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.edit-profile-header h3 i {
    margin-right: 10px;
    color: #ffd700;
}

.close-edit-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-edit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.edit-profile-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section h4 i {
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: white;
    color: #333;
    padding: 10px;
}

.edit-profile-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
    margin-top: 30px;
}

.cancel-btn,
.save-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e1e5e9;
}

.cancel-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

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

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.save-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .edit-profile-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .edit-profile-header {
        padding: 20px;
    }
    
    .edit-profile-form {
        padding: 20px;
    }
    
    .edit-profile-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .save-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Social Feed Styles */
.social-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.create-post-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-form {
    width: 100%;
}

.post-form-header h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4rem;
}

.post-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.upload-placeholder {
    color: #666;
}

.upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #ccc;
}

.upload-placeholder p {
    margin: 0;
    font-size: 1rem;
}

.post-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-form-fields .form-group {
    margin: 0;
}

.post-form-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.post-form-fields input,
.post-form-fields textarea,
.post-form-fields select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.post-form-fields input:focus,
.post-form-fields textarea:focus,
.post-form-fields select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

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

.char-count {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    margin-top: 4px;
}

.post-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.post-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.post-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.social-feed {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.feed-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

.refresh-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #e9ecef;
}

.feed-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}

.post-user-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.post-meta {
    font-size: 0.8rem;
    color: #666;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-content {
    padding: 16px;
}

.post-caption {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #333;
}

.post-drink-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.post-drink-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.post-drink-details {
    font-size: 0.9rem;
    color: #666;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.post-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #666;
}

.post-action:hover {
    background: #f8f9fa;
    color: #007bff;
}

.post-action.liked {
    color: #e91e63;
}

.post-action i {
    font-size: 1.1rem;
}

.post-comments {
    padding: 16px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.comment-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.comment-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
}

.comment-input button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.comment-input button:hover {
    background: #0056b3;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-item {
    display: flex;
    gap: 8px;
    align-items: start;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.comment-content {
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 16px;
}

.empty-feed {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.load-more-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.load-more-btn:hover {
    background: #e9ecef;
}

/* Mobile Responsive for Social Feed */
@media (max-width: 768px) {
    .post-form-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .image-upload-area {
        padding: 20px;
    }
    
    .feed-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Friends Page Styles */
.friends-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.friends-container {
    flex: 1;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.friends-header h3 {
    color: var(--gray-800);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
}

.friends-header h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.add-friend-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.friend-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-normal);
}

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

.friend-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.friend-info {
    flex: 1;
}

.friend-info h4 {
    color: var(--gray-800);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0 0 5px 0;
}

.friend-info p {
    color: var(--gray-600);
    margin: 0 0 10px 0;
}

.friend-stats {
    display: flex;
    gap: 15px;
}

.friend-stats span {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 5px;
}

.friend-stats i {
    color: var(--primary-color);
}

.friend-actions {
    display: flex;
    gap: 10px;
}

.friend-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.friend-btn:hover {
    background: var(--primary-dark);
}

.friend-btn.remove {
    background: var(--error-color);
}

.friend-btn.remove:hover {
    background: #dc2626;
}

.empty-friends {
    text-align: center;
    padding: 60px 20px;
}

/* Settings Page Styles */
.settings-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.settings-container {
    flex: 1;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.settings-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.settings-section h3 {
    color: var(--gray-800);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section h3 i {
    color: var(--primary-color);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: var(--gray-700);
    font-weight: 500;
    font-size: var(--font-size-base);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    min-width: 120px;
}

.setting-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.settings-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-base);
}

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

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

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

/* About Page Styles */
.about-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.about-container {
    flex: 1;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.about-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.about-section h3 {
    color: var(--gray-800);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section h3 i {
    color: var(--primary-color);
}

.about-section p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 15px;
}

.features-list, .database-list, .tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li, .database-list li, .tech-list li {
    color: var(--gray-700);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i, .tech-list li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.database-list li {
    font-weight: 500;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.creator-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.creator-details h4 {
    color: var(--gray-800);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0 0 5px 0;
}

.creator-details p {
    color: var(--gray-600);
    margin: 0 0 8px 0;
}

.support-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    color: var(--gray-800);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.close-modal-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.support-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.support-option {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.support-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.support-option i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.support-option h4 {
    color: var(--gray-800);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0 0 10px 0;
}

.support-option p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin: 0 0 15px 0;
}

/* Mobile Responsive for New Pages */
@media (max-width: 768px) {
    .friends-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .friend-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .friend-actions {
        width: 100%;
        justify-content: center;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .creator-info {
        flex-direction: column;
        text-align: center;
    }
    
    .support-actions {
        flex-direction: column;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loading-spinner {
    margin-bottom: 15px;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
}

.loading-state p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

/* Dark Theme Support */
.dark-theme {
    --white: #1f2937;
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
}

.dark-theme body {
    background: var(--gray-900);
    color: var(--gray-100);
}

.dark-theme .header,
.dark-theme .footer {
    background: var(--gray-800);
}

.dark-theme .beverage-card,
.dark-theme .favorite-card,
.dark-theme .history-item,
.dark-theme .featured-card,
.dark-theme .friend-item,
.dark-theme .settings-section,
.dark-theme .about-section {
    background: var(--gray-800);
    color: var(--gray-100);
}

.dark-theme .beverage-card h3,
.dark-theme .favorite-card h3,
.dark-theme .featured-card h3,
.dark-theme .friend-item h4,
.dark-theme .settings-section h3,
.dark-theme .about-section h3 {
    color: var(--gray-100);
}

.dark-theme .beverage-card p,
.dark-theme .favorite-card p,
.dark-theme .featured-card p,
.dark-theme .friend-item p,
.dark-theme .settings-section p,
.dark-theme .about-section p {
    color: var(--gray-300);
}

/* Focus Indicators for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --accent-color: #000000;
        --gray-200: #000000;
        --gray-300: #000000;
    }
    
    .beverage-card,
    .favorite-card,
    .history-item,
    .featured-card,
    .friend-item,
    .settings-section,
    .about-section {
        border: 2px solid #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .menu-btn,
    .sidebar,
    .profile-btn-header,
    .auth-page {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .beverage-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
} 