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

        :root {
            --primary-green: #10b981;
            --primary-blue: #3b82f6;
            --dark-bg: #f9fafb;
            --card-bg: #ffffff;
            --text-primary: #111827;
            --text-secondary: #6b7280;
            --border-color: #e5e7eb;
            --success: #22c55e;
            --warning: #f59e0b;
            --error: #ef4444;
            --gradient-1: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
            --gradient-2: linear-gradient(135deg, #059669 0%, #2563eb 100%);
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: var(--dark-bg);
            color: var(--text-primary);
            line-height: 1.6;
        }

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

        /* Header */
        .header {
            background: var(--card-bg);
            border-bottom: 1px solid var(--border-color);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

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

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .logo-subtitle {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: -5px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* Hero Welcome Section */
        .hero-welcome {
            position: relative;
            height: 85vh;
            min-height: 600px;
            background-image: url('/static/images/2025-11-28_evavitas_welcome.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            overflow: hidden;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
            backdrop-filter: blur(0.5px);
        }

        .hero-message {
            position: relative;
            z-index: 10;
            text-align: left;
            padding: 4rem 0 0 4rem;
            animation: fadeInLeft 1.2s ease-out;
        }

        .hero-line {
            font-size: 3.5rem;
            font-weight: 800;
            color: #ffffff;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
            letter-spacing: 0.01em;
            line-height: 1.3;
            margin: 0.5rem 0;
        }

        .hero-line-large {
            font-size: 5rem;
            font-weight: 900;
            color: #ffffff;
            text-shadow: 0 6px 30px rgba(0, 0, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.7);
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

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

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

        /* Hide hero when logged in */
        .hero-welcome.hidden {
            display: none;
        }

        .btn {
            padding: 0.75rem 2rem;
            border: none;
            border-radius: 0.5rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
            letter-spacing: 0.3px;
        }

        .btn-primary {
            background: var(--gradient-1);
            color: white;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
        }

        .btn-secondary {
            background: var(--card-bg);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            font-weight: 600;
        }

        .btn-secondary:hover {
            background: var(--border-color);
        }

        /* Auth Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 200;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--card-bg);
            border-radius: 1rem;
            padding: 2rem;
            max-width: 400px;
            width: 90%;
            border: 1px solid var(--border-color);
        }

        .modal-header {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

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

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .form-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            background: var(--dark-bg);
            color: var(--text-primary);
            font-size: 1rem;
        }

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

        .form-footer {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .form-footer .btn {
            flex: 1;
        }

        .modal-switch {
            text-align: center;
            margin-top: 1rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .modal-switch a {
            color: var(--primary-green);
            cursor: pointer;
            text-decoration: none;
        }

        /* Main Layout */
        .main-layout {
            display: grid;
            grid-template-columns: 250px 1fr;
            gap: 2rem;
            padding: 2rem 0;
            min-height: calc(100vh - 80px);
        }

        /* Sidebar Navigation */
        .sidebar {
            background: var(--card-bg);
            border-radius: 1rem;
            padding: 1.5rem;
            height: fit-content;
            border: 1px solid var(--border-color);
            position: sticky;
            top: 100px;
        }

        .nav-item {
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--text-secondary);
        }

        .nav-item:hover {
            background: var(--dark-bg);
            color: var(--text-primary);
        }

        .nav-item.active {
            background: var(--gradient-1);
            color: white;
        }

        .nav-icon {
            font-size: 1.25rem;
        }

        /* Content Area */
        .content {
            display: none;
        }

        .content.active {
            display: block;
        }

        .card {
            background: var(--card-bg);
            border-radius: 1rem;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
        }

        .card-header {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Dashboard */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: var(--card-bg);
            border-radius: 1rem;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-change {
            font-size: 0.875rem;
            margin-top: 0.5rem;
        }

        .stat-change.positive {
            color: var(--success);
        }

        /* Questionnaire */
        .questionnaire-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            border-bottom: 1px solid var(--border-color);
        }

        .questionnaire-tab {
            padding: 1rem 1.5rem;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            color: var(--text-secondary);
            transition: all 0.3s;
        }

        .questionnaire-tab.active {
            color: var(--primary-green);
            border-bottom-color: var(--primary-green);
        }

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

        .form-section-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-green);
        }

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

        .form-select {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            background: var(--dark-bg);
            color: var(--text-primary);
            font-size: 1rem;
        }

        .form-hint {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 0.25rem;
        }

        .radio-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .radio-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
        }

        /* History Timeline */
        .timeline {
            position: relative;
            padding-left: 2rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--border-color);
        }

        .timeline-item {
            position: relative;
            padding-bottom: 2rem;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -2.5rem;
            top: 0.5rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--primary-green);
        }

        .timeline-date {
            color: var(--text-secondary);
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

        .timeline-content {
            background: var(--dark-bg);
            padding: 1rem;
            border-radius: 0.5rem;
        }

        /* Chat Interface */
        /* Eva AI Assistant Sidebar */
        .eva-sidebar {
            width: 400px;
            background: var(--card-bg);
            border-left: 1px solid var(--border-color);
            display: none;
            flex-direction: column;
            height: 100vh;
            position: fixed;
            right: 0;
            top: 0;
            z-index: 100;
            transition: transform 0.3s ease;
        }

        #main-app:not(.hidden) ~ .eva-sidebar {
            display: flex;
        }

        .eva-sidebar.collapsed {
            transform: translateX(100%);
        }

        .eva-header {
            padding: 1.25rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--dark-bg);
        }

        .eva-profile {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .eva-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--accent-color);
        }

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

        .eva-name {
            font-weight: 700;
            font-size: 1.1rem;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .eva-subtitle {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .eva-toggle {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 0.375rem;
            transition: all 0.2s;
        }

        .eva-toggle:hover {
            background: var(--dark-bg);
            color: var(--text-primary);
        }

        .eva-messages {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .eva-welcome {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1rem;
            padding: 2rem 1rem;
        }

        .eva-welcome-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent-color);
        }

        .eva-welcome-text h3 {
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
        }

        .eva-welcome-text p {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 0.5rem;
        }

        .eva-message {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

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

        .eva-message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .eva-message-content {
            max-width: 85%;
            padding: 0.875rem 1rem;
            border-radius: 1rem;
            font-size: 0.95rem;
            line-height: 1.5;
            word-wrap: break-word;
        }

        .eva-message.user .eva-message-content {
            background: var(--gradient-1);
            color: white;
            border-radius: 1rem 1rem 0.25rem 1rem;
        }

        .eva-message.assistant .eva-message-content {
            background: var(--dark-bg);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            border-radius: 1rem 1rem 1rem 0.25rem;
        }

        .eva-input-container {
            padding: 1rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: 0.75rem;
            align-items: flex-end;
            background: var(--dark-bg);
        }

        .eva-input {
            flex: 1;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 1.25rem;
            background: var(--card-bg);
            color: var(--text-primary);
            font-family: inherit;
            font-size: 0.95rem;
            resize: none;
            max-height: 120px;
            transition: border-color 0.2s;
        }

        .eva-input:focus {
            outline: none;
            border-color: var(--accent-color);
        }

        .eva-send {
            padding: 0.75rem;
            background: var(--gradient-1);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }

        .eva-send:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .eva-send:active {
            transform: scale(0.95);
        }

        .eva-send:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .eva-loading {
            display: flex;
            gap: 0.75rem;
            padding: 0.875rem 1rem;
        }

        .eva-loading-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

        .eva-loading-dots {
            display: flex;
            gap: 0.375rem;
            align-items: center;
            padding: 0.875rem 1rem;
            background: var(--dark-bg);
            border: 1px solid var(--border-color);
            border-radius: 1rem 1rem 1rem 0.25rem;
        }

        .eva-loading-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--text-secondary);
            animation: eva-loading-bounce 1.4s infinite ease-in-out both;
        }

        .eva-loading-dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .eva-loading-dot:nth-child(2) {
            animation-delay: -0.16s;
        }

        @keyframes eva-loading-bounce {
            0%, 80%, 100% {
                transform: scale(0);
                opacity: 0.5;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }

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

        .data-table th {
            background: var(--dark-bg);
            font-weight: 600;
            color: var(--primary-green);
        }

        .data-table tr:hover {
            background: var(--dark-bg);
        }

        /* Loading */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid var(--border-color);
            border-radius: 50%;
            border-top-color: var(--primary-green);
            animation: spin 1s linear infinite;
        }

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

        /* Alert */
        .alert {
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
        }

        .alert-success {
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid var(--success);
            color: var(--success);
        }

        .alert-error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid var(--error);
            color: var(--error);
        }

        /* Hidden */
        .hidden {
            display: none !important;
        }

        /* Tag Checkboxes - White boxes with black text */
        .tag-checkbox {
            display: inline-flex;
            align-items: center;
            padding: 0.375rem 0.625rem;
            background: white;
            border: 1.5px solid #d1d5db;
            border-radius: 0.375rem;
            cursor: pointer;
            transition: all 0.15s;
            font-size: 0.875rem;
            font-weight: 500;
            color: #000000;
        }

        .tag-checkbox:hover {
            border-color: var(--primary-color);
            background: #f9fafb;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .tag-checkbox input[type="checkbox"] {
            margin-right: 0.375rem;
            cursor: pointer;
            width: 14px;
            height: 14px;
            accent-color: var(--primary-color);
        }

        .tag-checkbox:has(input[type="checkbox"]:checked) {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        }

        /* Diary Form Enhancements */
        #diary-form {
            background: linear-gradient(to bottom, #ffffff, #f9fafb);
            padding: 1.5rem;
            border-radius: 1rem;
            border: 1px solid #e5e7eb;
        }

        #diary-form .form-label {
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 0.5rem;
            display: block;
            font-size: 0.9rem;
        }

        #diary-form .form-input,
        #diary-form .form-select {
            border: 2px solid #e5e7eb;
            border-radius: 0.5rem;
            padding: 0.625rem 0.875rem;
            font-size: 0.9375rem;
            transition: all 0.2s;
            background: white;
        }

        #diary-form .form-input:focus,
        #diary-form .form-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            transform: translateY(-1px);
        }

        #diary-form .form-input:hover,
        #diary-form .form-select:hover {
            border-color: #d1d5db;
        }

        /* Textarea special styling */
        #diary-content {
            border: 2px solid #e5e7eb;
            border-radius: 0.75rem;
            padding: 1rem;
            resize: vertical;
            min-height: 280px;
            background: white;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        #diary-content:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        /* Range sliders */
        input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(to right, #dbeafe 0%, var(--primary-color) 50%, #ef4444 100%);
            outline: none;
            margin: 0.5rem 0;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: white;
            border: 2px solid var(--primary-color);
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.2s;
        }

        input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
        }

        input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: white;
            border: 2px solid var(--primary-color);
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.2s;
        }

        input[type="range"]::-moz-range-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
        }

        /* Button enhancements */
        #diary-form .btn {
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            border-radius: 0.5rem;
            transition: all 0.2s;
            font-size: 0.9375rem;
        }

        #diary-form .btn-primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
            box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
        }

        #diary-form .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
        }

        #diary-form .btn-primary:active {
            transform: translateY(0);
        }

        #diary-form .btn-secondary {
            background: white;
            border: 2px solid #e5e7eb;
            color: #374151;
        }

        #diary-form .btn-secondary:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            background: #f9fafb;
        }

        /* Photo preview enhancements */
        #photo-preview {
            margin-top: 1rem;
        }

        #photo-preview > div {
            position: relative;
            border-radius: 0.75rem;
            overflow: hidden;
            border: 2px solid #e5e7eb;
            transition: all 0.2s;
        }

        #photo-preview > div:hover {
            border-color: var(--primary-color);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transform: scale(1.02);
        }

        /* Diary entry card - clickable */
        .diary-entry-card {
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            padding: 1.25rem;
            margin-bottom: 1rem;
            background: white;
            cursor: pointer;
            transition: all 0.25s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .diary-entry-card:hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
            transform: translateY(-3px);
            border-color: var(--primary-color);
        }

        /* Simple Claude-inspired Card Design - Light Green-Blue Theme */
        #diary .card {
            border-radius: 0.75rem;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            overflow: hidden;
            background: #fafafa;
        }

        #diary .card-header {
            background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            color: white;
            font-size: 1.5rem;
            font-weight: 600;
            padding: 1.5rem 2rem;
            border-radius: 0;
            border-bottom: none;
            letter-spacing: 0.3px;
        }

        #diary > .card > p {
            font-size: 0.95rem;
            color: #6b7280;
            padding: 1rem 2rem 0.5rem 2rem;
            font-weight: 400;
        }

        /* Simple Lined Paper - Clean Design */
        #diary-content {
            background:
                repeating-linear-gradient(
                    transparent,
                    transparent 31px,
                    #d1fae5 31px,
                    #d1fae5 32px
                );
            background-color: #ffffff;
            background-size: 100% 32px;
            line-height: 32px;
            padding: 1rem 1rem 1rem 1rem;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            font-family: system-ui, -apple-system, sans-serif;
            font-size: 1rem;
            color: #1f2937;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        #diary-content:focus {
            outline: none;
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
            background-color: #ffffff;
        }

        #diary-form {
            background: #ffffff;
            position: relative;
        }

        /* Enhanced title input - Clean */
        #diary-form input[name="diary_title"] {
            font-size: 1.125rem;
            font-weight: 600;
            color: #111827;
            padding: 0.75rem 1rem;
            border: 1px solid #d1d5db;
            background: #ffffff;
        }

        #diary-form input[name="diary_title"]:focus {
            outline: none;
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }

        /* Better text colors throughout */
        #diary-form .form-label {
            color: #374151;
            font-weight: 500;
        }

        #diary-form .form-input,
        #diary-form .form-select {
            color: #1f2937;
            border-color: #d1d5db;
        }

        #diary-form .form-input:focus,
        #diary-form .form-select:focus {
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }

        /* Prominent Save Button for Diary */
        #diary-form button[type="submit"] {
            width: 100%;
            padding: 1rem 2rem;
            font-size: 1.125rem;
            font-weight: 700;
            margin-top: 1.5rem;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
            letter-spacing: 0.5px;
        }

        #diary-form button[type="submit"]:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
        }

        #diary-form button[type="submit"]:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .eva-sidebar {
                box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
            }
        }

        @media (max-width: 768px) {
            .main-layout {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: static;
            }

            .eva-sidebar {
                width: 100%;
            }

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

            /* Hero mobile optimizations */
            .hero-welcome {
                height: 70vh;
                min-height: 500px;
            }

            .hero-message {
                padding: 2rem 0 0 2rem;
            }

            .hero-line {
                font-size: 2.25rem;
            }

            .hero-line-large {
                font-size: 3rem;
            }

            /* Diary mobile optimizations */
            #diary-form {
                padding: 1rem;
            }

            #diary .card-header {
                font-size: 1.25rem;
                padding: 1rem;
            }

            #diary-form .btn {
                width: 100%;
                margin-top: 0.5rem;
            }

            #diary-content {
                min-height: 200px;
            }

            .tag-checkbox {
                font-size: 0.8125rem;
                padding: 0.3rem 0.5rem;
            }
        }

        /* ============ LANDING PAGE (STEALTH MODE) ============ */

        .landing-page {
            position: relative;
            min-height: 100vh;
            background-image: url('/static/images/2025-11-28_evavitas_welcome.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            flex-direction: column;
        }

        .landing-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
            backdrop-filter: blur(0.5px);
        }

        .landing-hero {
            position: relative;
            z-index: 10;
            flex: 1;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: flex-start;
            padding: 4rem;
        }

        .landing-message {
            text-align: left;
            animation: fadeInLeft 1.2s ease-out;
        }

        .landing-line {
            font-size: 3.5rem;
            font-weight: 800;
            color: #ffffff;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
            letter-spacing: 0.01em;
            line-height: 1.3;
            margin: 0.5rem 0;
        }

        .landing-line-large {
            font-size: 5rem;
            font-weight: 900;
            color: #ffffff;
            text-shadow: 0 6px 30px rgba(0, 0, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.7);
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

        .waitlist-form {
            background: rgba(0, 0, 0, 0.5);
            padding: 2.5rem 3rem;
            border-radius: 1rem;
            backdrop-filter: blur(10px);
            min-width: 400px;
            color: white;
            align-self: flex-end;
        }

        .waitlist-label {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .waitlist-input-group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .waitlist-input-group input {
            width: 100%;
            padding: 1rem 1.25rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 1.1rem;
            outline: none;
        }

        .waitlist-input-group input:focus {
            box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
        }

        .waitlist-input-group .btn {
            width: 100%;
            padding: 1rem 1.5rem;
            font-size: 1.1rem;
            font-weight: 700;
        }

        .waitlist-message {
            margin-top: 1rem;
            padding: 0.75rem;
            border-radius: 0.5rem;
            font-size: 0.9rem;
        }

        .waitlist-message.success {
            background: rgba(34, 197, 94, 0.2);
            color: #bbf7d0;
        }

        .waitlist-message.error {
            background: rgba(239, 68, 68, 0.2);
            color: #fecaca;
        }

        .landing-login-link {
            font-size: 1rem;
            font-weight: 500;
            margin-top: 1.5rem;
            text-align: center;
            opacity: 0.9;
        }

        .landing-login-link a {
            color: white;
            text-decoration: underline;
            cursor: pointer;
            font-weight: 600;
        }

        .landing-login-link a:hover {
            opacity: 1;
        }

        /* Responsive landing page */
        @media (max-width: 768px) {
            .landing-hero {
                flex-direction: column;
                padding: 2rem;
            }

            .landing-line {
                font-size: 2rem;
            }

            .landing-line-large {
                font-size: 3rem;
            }

            .waitlist-form {
                max-width: 100%;
                margin-top: 2rem;
            }

            .waitlist-input-group {
                flex-direction: column;
            }
        }

        /* ============ ADMIN PANEL ============ */

        .admin-panel {
            min-height: 100vh;
            background: var(--dark-bg);
            padding: 2rem;
        }

        .admin-container {
            max-width: 1000px;
            margin: 0 auto;
        }

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

        .admin-header h2 {
            font-size: 1.5rem;
            color: var(--text-primary);
        }

        .admin-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 0.75rem;
            text-align: center;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .stat-card .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .stat-card .stat-label {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin-top: 0.25rem;
        }

        .stat-card.stat-waiting .stat-number { color: #f59e0b; }
        .stat-card.stat-invited .stat-number { color: #3b82f6; }
        .stat-card.stat-registered .stat-number { color: #22c55e; }

        .admin-section {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 0.75rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .admin-section h3 {
            font-size: 1.125rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .quick-invite-form {
            display: flex;
            gap: 0.5rem;
        }

        .quick-invite-form input {
            flex: 1;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            font-size: 1rem;
        }

        .quick-invite-form input:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .waitlist-table-container {
            overflow-x: auto;
        }

        .waitlist-table {
            width: 100%;
            border-collapse: collapse;
        }

        .waitlist-table th,
        .waitlist-table td {
            padding: 0.75rem 1rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .waitlist-table th {
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 0.8125rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .waitlist-table td {
            font-size: 0.9rem;
        }

        .waitlist-table tr:hover {
            background: #f9fafb;
        }

        .status-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .status-badge.waiting {
            background: #fef3c7;
            color: #92400e;
        }

        .status-badge.invited {
            background: #dbeafe;
            color: #1e40af;
        }

        .status-badge.registered {
            background: #d1fae5;
            color: #065f46;
        }

        .action-btn {
            padding: 0.375rem 0.75rem;
            border: none;
            border-radius: 0.375rem;
            font-size: 0.8125rem;
            cursor: pointer;
            margin-right: 0.25rem;
        }

        .action-btn.invite {
            background: #3b82f6;
            color: white;
        }

        .action-btn.invite:hover {
            background: #2563eb;
        }

        .action-btn.delete {
            background: #fee2e2;
            color: #dc2626;
        }

        .action-btn.delete:hover {
            background: #fecaca;
        }

        /* Admin responsive */
        @media (max-width: 768px) {
            .admin-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            .quick-invite-form {
                flex-direction: column;
            }

            .landing-title {
                font-size: 2.5rem;
            }

            .waitlist-input-group {
                flex-direction: column;
            }
        }

        /* ============ TOGGLE SWITCH ============ */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #cbd5e1;
            transition: 0.3s;
            border-radius: 26px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }

        .toggle-switch input:checked + .toggle-slider {
            background-color: #22c55e;
        }

        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(24px);
        }
