@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --font-primary: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    
    /* Premium Dark Theme Palette */
    --bg-primary: #0a0c16;
    --bg-secondary: #111424;
    --bg-panel: #171b30;
    --bg-glass: rgba(23, 27, 48, 0.65);
    --bg-glass-hover: rgba(29, 34, 61, 0.85);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-bright: rgba(255, 255, 255, 0.15);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --accent-glow: rgba(139, 92, 246, 0.15);
    --color-primary: #8b5cf6; /* Violet */
    --color-secondary: #6366f1; /* Indigo */
    
    /* Category Colors (Solid & RGB for alpha manipulation) */
    --color-cat-food: #10b981;
    --rgb-cat-food: 16, 185, 129;
    
    --color-cat-ent: #f59e0b;
    --rgb-cat-ent: 245, 158, 11;
    
    --color-cat-culture: #8b5cf6;
    --rgb-cat-culture: 139, 92, 246;
    
    --color-cat-nature: #06b6d4;
    --rgb-cat-nature: 6, 182, 212;
    
    --color-cat-wellness: #ec4899;
    --rgb-cat-wellness: 236, 72, 153;
    
    --color-cat-local_discovery: #3b82f6;
    --rgb-cat-local_discovery: 59, 130, 246;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-glass-bright);
}

/* Mesh Background for Login Screen */
.mesh-bg {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 20%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 80%, rgba(236, 72, 153, 0.1) 0px, transparent 50%);
    min-height: 100vh;
}

/* Sidebar Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    z-index: 100;
    transition: all 0.3s ease;
}

.main-content {
    flex-grow: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 30px;
}

/* Sidebar Navigation Items */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 8px 16px;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
}

.nav-link-custom i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    transition: transform 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link-custom:hover i {
    transform: scale(1.1);
}

.nav-link-custom.active {
    color: var(--text-main);
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.nav-link-custom.active i {
    color: var(--color-primary);
}

/* Top bar styles */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

/* Category Checkbox UI */
.category-group-card {
    border-left: 4px solid var(--border-color);
}

.category-group-card.cat-food { border-left-color: var(--color-cat-food); }
.category-group-card.cat-ent { border-left-color: var(--color-cat-ent); }
.category-group-card.cat-culture { border-left-color: var(--color-cat-culture); }
.category-group-card.cat-nature { border-left-color: var(--color-cat-nature); }
.category-group-card.cat-wellness { border-left-color: var(--color-cat-wellness); }
.category-group-card.cat-local_discovery { border-left-color: var(--color-cat-local_discovery); }

.subtypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-top: 10px;
}

.subtype-checkbox-wrapper {
    position: relative;
}

.subtype-btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.subtype-label {
    display: block;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.subtype-label:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

/* Checked styling per category */
.cat-food .subtype-btn-check:checked + .subtype-label {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--color-cat-food);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.cat-ent .subtype-btn-check:checked + .subtype-label {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: var(--color-cat-ent);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.cat-culture .subtype-btn-check:checked + .subtype-label {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--color-cat-culture);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.cat-nature .subtype-btn-check:checked + .subtype-label {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.5);
    color: var(--color-cat-nature);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.cat-wellness .subtype-btn-check:checked + .subtype-label {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.5);
    color: var(--color-cat-wellness);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.1);
}

.cat-local_discovery .subtype-btn-check:checked + .subtype-label {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--color-cat-local_discovery);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

/* Category Badges */
.badge-category {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Solid Badges (Main Categories) */
.badge-cat-food { background-color: var(--color-cat-food); color: #fff; }
.badge-cat-ent { background-color: var(--color-cat-ent); color: #fff; }
.badge-cat-culture { background-color: var(--color-cat-culture); color: #fff; }
.badge-cat-nature { background-color: var(--color-cat-nature); color: #fff; }
.badge-cat-wellness { background-color: var(--color-cat-wellness); color: #fff; }
.badge-cat-local_discovery { background-color: var(--color-cat-local_discovery); color: #fff; }

/* Faded Badges (Subtypes) */
.badge-sub-food {
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-cat-food);
}
.badge-sub-ent {
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--color-cat-ent);
}
.badge-sub-culture {
    background-color: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--color-cat-culture);
}
.badge-sub-nature {
    background-color: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--color-cat-nature);
}
.badge-sub-wellness {
    background-color: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: var(--color-cat-wellness);
}
.badge-sub-local_discovery {
    background-color: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--color-cat-local_discovery);
}

/* Result Cards styling */
.result-card {
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
}

.result-img-wrapper {
    width: 180px;
    min-width: 180px;
    height: auto;
    min-height: 140px;
    position: relative;
    background: #171b30;
}

.result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}

.result-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rating-stars {
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.9rem;
}

.rating-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    padding: 3px 8px;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-right: 8px;
}

/* Custom Checkbox Design (Bootstrap override) */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

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

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
    border-color: var(--color-primary);
}

/* Custom Text inputs */
.form-control-custom {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--color-primary);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
    outline: none;
}

/* Spinner Overlay for API Requests */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 17, 29, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

/* Custom Button */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    opacity: 0.95;
}

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

.btn-outline-custom {
    background: transparent;
    border: 1px solid var(--border-glass-bright);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.btn-check:checked + .btn-outline-custom {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Added Experience List Items */
.experience-list-card {
    border-left: 4px solid var(--color-primary);
}

/* Scrollbar custom styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Section Container Layout */
.section-pane {
    display: none;
}

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

/* Custom Input Placeholders */
.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Places UI Details Upgrades */
.badge-payment {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.generative-summary-box {
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    padding: 10px 15px;
    margin: 12px 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-main);
}

.reviews-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 100%;
    text-align: left;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    margin-top: 10px;
}

.reviews-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    border-color: var(--border-glass-bright);
}

.reviews-timeline {
    margin-top: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-glass);
}

.review-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.review-author-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 1px solid var(--border-glass);
}

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

.review-author-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-dark);
}

.review-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Note Field Autopersistence style */
.note-container {
    margin-top: 15px;
    position: relative;
}

.note-textarea {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    resize: vertical;
    padding-right: 40px !important;
}

.note-textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.15) !important;
}

.note-save-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    z-index: 5;
}

.note-save-btn:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

.note-status-indicator {
    position: absolute;
    right: 40px;
    bottom: 13px;
    font-size: 0.75rem;
    display: none;
    align-items: center;
    gap: 4px;
    color: var(--color-cat-food);
    transition: all 0.2s;
    z-index: 5;
}

/* Map Modal Style */
.map-iframe-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #0e111d;
    border-radius: 8px;
    overflow: hidden;
}

.address-map-link {
    cursor: pointer;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.address-map-link:hover {
    color: var(--color-primary) !important;
}

/* Premium Light Theme overrides */
[data-bs-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-panel: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --bg-glass-hover: rgba(241, 245, 249, 0.85);
    
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-bright: rgba(0, 0, 0, 0.15);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dark: #94a3b8;
    
    --accent-glow: rgba(139, 92, 246, 0.08);
    
    /* Light Theme Input / Card overrides */
    --bs-body-bg: #f8fafc;
    --bs-body-color: #0f172a;
}

[data-bs-theme="light"] .glass-card {
    box-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.12);
}

[data-bs-theme="light"] .form-control-custom {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

[data-bs-theme="light"] .form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--color-primary);
    color: #0f172a;
}

[data-bs-theme="light"] .form-control-custom::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="light"] .table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="light"] .text-white {
    color: #0f172a !important;
}

[data-bs-theme="light"] .text-white-50 {
    color: #475569 !important;
}

[data-bs-theme="light"] .text-light {
    color: #334155 !important;
}

[data-bs-theme="light"] .topbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .nav-link-custom {
    color: #475569;
}

[data-bs-theme="light"] .nav-link-custom:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #0f172a;
}

[data-bs-theme="light"] .nav-link-custom.active {
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

[data-bs-theme="light"] .sidebar .border-bottom,
[data-bs-theme="light"] .sidebar .border-top {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .btn-outline-custom {
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .btn-outline-custom:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}

[data-bs-theme="light"] .modal-header,
[data-bs-theme="light"] .modal-footer {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

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

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

[data-bs-theme="light"] .note-textarea {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

[data-bs-theme="light"] .reviews-timeline {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .review-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .review-author-name {
    color: #0f172a;
}

[data-bs-theme="light"] .review-text {
    color: #334155;
}

[data-bs-theme="light"] .subtypes-grid {
    background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="light"] .subtype-label {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

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

[data-bs-theme="light"] .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .dropdown-divider {
    border-color: rgba(0, 0, 0, 0.08);
}


