/* ===================================
   Light Theme - Original Design
   Day Reading Mode
   =================================== */

[data-theme="light"] {
    /* Original Brand Colors */
    --brand-primary: #667eea;
    --brand-primary-hover: #5568d3;
    --brand-primary-light: #e8ebfa;

    /* Light Neutral Palette */
    --cosmic-dark: #ffffff;
    --cosmic-medium: #ffffff;
    --cosmic-light: #f9fafb;
    --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;

    /* Light Semantic Colors */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --surface-bg: #ffffff;
    --surface-hover: #f9fafb;
    --success-color: #10b981;

    /* Light Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;

    /* Semantic Colors for Light Mode */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Light Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Light Mode Body */
[data-theme="light"] body {
    background: #f9fafb;
    color: #111827;
}

/* Light Mode Navbar */
[data-theme="light"] .navbar,
[data-theme="light"] .auth-navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="light"] .navbar-brand {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .navbar *,
[data-theme="light"] .navbar a:not(.btn),
[data-theme="light"] .navbar span,
[data-theme="light"] .navbar button:not(.btn),
[data-theme="light"] .auth-navbar *,
[data-theme="light"] .auth-navbar a:not(.btn),
[data-theme="light"] .auth-navbar span,
[data-theme="light"] .auth-navbar button:not(.btn) {
    color: #111827 !important;
}

[data-theme="light"] .navbar .form-select,
[data-theme="light"] .auth-navbar .form-select {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .navbar .btn-primary,
[data-theme="light"] .auth-navbar .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

[data-theme="light"] .navbar .btn-outline-primary,
[data-theme="light"] .auth-navbar .btn-outline-primary {
    color: #667eea !important;
    border-color: #667eea !important;
}

[data-theme="light"] #themeToggle {
    background: transparent !important;
    color: #6b7280 !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] #themeToggle:hover {
    background: #f9fafb !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

/* Light Mode Hero Section */
[data-theme="light"] .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="light"] .hero-title {
    background: none !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
}

[data-theme="light"] .stars-layer {
    display: block;
}

/* Light Mode Buttons */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8a 100%) !important;
    color: #ffffff !important;
}

/* Ensure all text inside purple backgrounds is white */
[data-theme="light"] .btn-primary *,
[data-theme="light"] .btn-primary span,
[data-theme="light"] .btn-primary i,
[data-theme="light"] .progress-bar *,
[data-theme="light"] .day-title *,
[data-theme="light"] .day-header *,
[data-theme="light"] .stats-card *,
[data-theme="light"] .step-number * {
    color: #ffffff !important;
}

[data-theme="light"] .btn-secondary {
    background: transparent !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .btn-secondary:hover {
    background: #f9fafb !important;
}

[data-theme="light"] .btn-outline-primary {
    background: transparent !important;
    color: #667eea !important;
    border-color: #667eea !important;
}

[data-theme="light"] .btn-outline-primary:hover,
[data-theme="light"] .btn-outline-primary.active {
    background: #667eea !important;
    color: #ffffff !important;
    border-color: #667eea !important;
}

[data-theme="light"] .btn-outline-secondary {
    background: transparent !important;
    color: #6b7280 !important;
}

[data-theme="light"] .btn-outline-secondary:hover,
[data-theme="light"] .btn-outline-secondary.active {
    background: #f9fafb !important;
    color: #111827 !important;
}

/* Light Mode Forms */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .form-label {
    color: #111827 !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #ffffff !important;
    color: #111827 !important;
}

/* Light Mode Cards */
[data-theme="light"] .activity-card,
[data-theme="light"] .audience-card,
[data-theme="light"] .day-card,
[data-theme="light"] .itinerary-card,
[data-theme="light"] .list-group-item {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .activity-card:hover,
[data-theme="light"] .audience-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border-color: #667eea !important;
}

/* Light Mode Text */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #111827 !important;
}

[data-theme="light"] .text-primary,
[data-theme="light"] .activity-card *:not(.btn),
[data-theme="light"] .list-group-item *:not(.btn),
[data-theme="light"] .itinerary-item * {
    color: #111827 !important;
}

[data-theme="light"] .text-secondary,
[data-theme="light"] .text-muted,
[data-theme="light"] small {
    color: #6b7280 !important;
}

/* Light Mode Sections */
[data-theme="light"] .audience-section,
[data-theme="light"] .how-it-works-section {
    background: #ffffff;
}

[data-theme="light"] .demo-section,
[data-theme="light"] .footer-cta {
    background: #f9fafb;
}

[data-theme="light"] .demo-container {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Light Mode Left Panel */
[data-theme="light"] .left-panel {
    background: #ffffff !important;
}

[data-theme="light"] .left-panel *:not(.btn):not(button) {
    color: #111827 !important;
}

[data-theme="light"] .left-panel .text-muted,
[data-theme="light"] .left-panel small {
    color: #6b7280 !important;
}

/* Light Mode Day Headers */
[data-theme="light"] .day-header {
    background: #f9fafb !important;
    color: #111827 !important;
}

[data-theme="light"] .day-title {
    background: #667eea !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Light Mode Progress Bars */
[data-theme="light"] .progress {
    background-color: #e5e7eb !important;
    border: 1px solid #d1d5db !important;
}

[data-theme="light"] .progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

[data-theme="light"] .progress-bar.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

[data-theme="light"] #progressContainer .card,
[data-theme="light"] #progressContainerMobile .card {
    background: #ffffff !important;
    border-color: #667eea !important;
}

[data-theme="light"] #progressText,
[data-theme="light"] #progressTextMobile {
    color: #667eea !important;
}

[data-theme="light"] .spinner-border.text-primary {
    color: #667eea !important;
}

/* Light Mode Modals */
[data-theme="light"] .modal-content {
    background: #ffffff !important;
}

[data-theme="light"] .modal-content *:not(.btn) {
    color: #111827 !important;
}

/* Light Mode Dropdown */
[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .dropdown-item {
    color: #111827 !important;
}

[data-theme="light"] .dropdown-item:hover {
    background: #f9fafb !important;
}

/* Light Mode Footer */
[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

[data-theme="light"] .footer-brand {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .footer-description,
[data-theme="light"] .footer-links a,
[data-theme="light"] .contact-item a {
    color: #6b7280 !important;
}

[data-theme="light"] .footer-heading {
    color: #111827 !important;
}

[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .contact-item:hover a {
    color: #667eea !important;
}

[data-theme="light"] .social-link {
    background: #f3f4f6 !important;
    color: #667eea !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .social-link:hover {
    background: #667eea !important;
    color: white !important;
}

[data-theme="light"] .contact-item {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .contact-item i {
    background: #667eea !important;
}

[data-theme="light"] .footer-bottom {
    background: #ffffff !important;
    border-top-color: #e5e7eb !important;
}

[data-theme="light"] .footer-bottom p {
    color: #6b7280 !important;
}

[data-theme="light"] .footer-bottom strong {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================
   Light Mode - Login/Register Page
   =================================== */

[data-theme="light"] body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

[data-theme="light"] .auth-container {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .auth-tabs {
    background: #f9fafb !important;
    border-bottom-color: #e5e7eb !important;
}

[data-theme="light"] .nav-link {
    color: #6b7280 !important;
}

[data-theme="light"] .nav-link:hover {
    color: #111827 !important;
    background: #f3f4f6 !important;
}

[data-theme="light"] .nav-link.active {
    background: #ffffff !important;
    color: #667eea !important;
    border-bottom-color: #667eea !important;
}

[data-theme="light"] .form-container h3 {
    color: #111827 !important;
}

[data-theme="light"] .form-label {
    color: #111827 !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background: #ffffff !important;
    border-color: #667eea !important;
    color: #111827 !important;
}

[data-theme="light"] .form-control::placeholder {
    color: #9ca3af !important;
}

[data-theme="light"] .form-text {
    color: #6b7280 !important;
}

[data-theme="light"] .form-check-label {
    color: #111827 !important;
}

[data-theme="light"] .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    vertical-align: top;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 2px solid #d1d5db;
    border-radius: 0.25em;
    appearance: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

[data-theme="light"] .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

[data-theme="light"] .form-check-input:hover {
    border-color: #667eea;
}

[data-theme="light"] .form-check-input:focus {
    border-color: #667eea;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

[data-theme="light"] .form-check-label {
    color: #111827 !important;
    cursor: pointer;
    user-select: none;
}

/* Classic Checkbox Styling for Light Theme - High Contrast */
[data-theme="light"] .form-check-input.preference-checkbox {
    width: 1.3em !important;
    height: 1.3em !important;
    margin-top: 0.15em !important;
    background-color: #ffffff !important;
    border: 2.5px solid #9ca3af !important;
    border-radius: 0.35em !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

[data-theme="light"] .form-check-input.preference-checkbox:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

[data-theme="light"] .form-check-input.preference-checkbox:hover {
    border-color: #667eea !important;
    box-shadow: 0 0 6px rgba(102, 126, 234, 0.3) !important;
}

[data-theme="light"] .form-check-input.preference-checkbox:focus {
    border-color: #667eea !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25) !important;
}

[data-theme="light"] .form-check .form-check-label {
    margin-left: 0.5rem;
    color: #111827;
    font-size: 0.95rem;
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

[data-theme="light"] .alert-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-left-color: #10b981 !important;
}

[data-theme="light"] .alert-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-left-color: #ef4444 !important;
}

[data-theme="light"] .company-info {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .company-info h5 {
    color: #111827 !important;
}

[data-theme="light"] .back-link {
    color: #ffffff !important;
}

[data-theme="light"] .back-link:hover {
    color: #f3f4f6 !important;
}

[data-theme="light"] .text-decoration-none {
    color: #667eea !important;
}

[data-theme="light"] .text-decoration-none:hover {
    color: #5568d3 !important;
}

[data-theme="light"] .text-muted {
    color: #6b7280 !important;
}

[data-theme="light"] .top-right-controls .form-select {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #111827 !important;
}

[data-theme="light"] .top-right-controls #themeToggle {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #667eea !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="light"] .top-right-controls #themeToggle:hover {
    background: #ffffff !important;
    color: #5568d3 !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="light"] .modal-content {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .modal-header {
    border-bottom-color: #e5e7eb !important;
}

[data-theme="light"] .modal-title {
    color: #111827 !important;
}

[data-theme="light"] .modal-body {
    color: #111827 !important;
}

[data-theme="light"] .modal-body p {
    color: #6b7280 !important;
}

[data-theme="light"] .btn-close {
    filter: none !important;
}

/* Light Mode Stats Cards */
[data-theme="light"] .stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Light Mode Itinerary Preview */
[data-theme="light"] .itinerary-preview {
    background: #f9fafb !important;
}

[data-theme="light"] .day-item {
    background: #ffffff !important;
}

/* Light Mode Progress Bar */
[data-theme="light"] .progress-bar-container {
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .progress-bar-fill {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

/* Light Mode Step Numbers */
[data-theme="light"] .step-number {
    background: #667eea !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Light Mode Alerts */
[data-theme="light"] .alert-info {
    color: #1e40af !important;
}

[data-theme="light"] .alert-success {
    color: #065f46 !important;
}

[data-theme="light"] .alert-warning {
    color: #92400e !important;
}

[data-theme="light"] .alert-danger {
    color: #991b1b !important;
}
