@tailwind base;
@tailwind components;
@tailwind utilities;
  * { font-family: 'Plus Jakarta Sans', sans-serif; }
  code, .mono { font-family: 'JetBrains Mono', monospace; }

  :root {
    --sidebar-bg: #0f1623;
    --sidebar-hover: #1a2236;
    --sidebar-active: #1e3a5f;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59,130,246,0.15);
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #06b6d4;
  }

  body { background: var(--surface-2); }

  /* Sidebar */
  #sidebar {
    background: var(--sidebar-bg);
    width: 260px;
    min-height: 100vh;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 50;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .sidebar-logo {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1623 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #94a3b8;
    border-radius: 8px;
    margin: 2px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
  }
  .nav-item:hover { background: var(--sidebar-hover); color: #e2e8f0; }
  .nav-item.active {
    background: var(--accent-glow);
    color: var(--accent-light);
    border: 1px solid rgba(59,130,246,0.2);
  }
  .nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
  }
  .nav-item i { width: 18px; text-align: center; font-size: 15px; }
  .nav-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #475569;
    padding: 16px 20px 6px;
    text-transform: uppercase;
  }

  /* Main content */
  #main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
  }

  /* Topbar */
  .topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
  }

  /* Page */
  .page { display: none; }
  .page.active { display: block; }

  /* Cards */
  .card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s;
  }
  .card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

  /* Stats card */
  .stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
  }
  .stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 0 12px 0 80px;
    opacity: 0.08;
  }
  .stat-card.blue::after { background: #3b82f6; }
  .stat-card.green::after { background: #22c55e; }
  .stat-card.purple::after { background: #a855f7; }
  .stat-card.orange::after { background: #f97316; }

  /* Buttons */
  .btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  .btn-primary:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
  .btn-danger {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  .btn-danger:hover { background: #fee2e2; }
  .btn-edit {
    background: #eff6ff;
    color: var(--accent);
    border: 1px solid #bfdbfe;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  .btn-edit:hover { background: #dbeafe; }
  .btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  .btn-secondary:hover { background: var(--surface-2); }

  /* Table */
  .data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
  .data-table thead th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
  }
  .data-table tbody tr:hover { background: #f8fafc; }
  .data-table tbody td { padding: 14px 16px; font-size: 14px; color: var(--text-primary); }
  .data-table tbody tr:last-child td { border-bottom: none; }

  /* Badge */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
  }
  .badge-active { background: #dcfce7; color: #16a34a; }
  .badge-inactive { background: #f1f5f9; color: #64748b; }
  .badge-pending { background: #fef9c3; color: #854d0e; }
  .badge-blue { background: #eff6ff; color: #1d4ed8; }
  .badge-purple { background: #f5f3ff; color: #6d28d9; }
  .badge-orange { background: #fff7ed; color: #c2410c; }

  /* Form inputs */
  .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
  }
  .form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
  .form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; }

  /* Modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,22,35,0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: white;
    border-radius: 16px;
    padding: 28px;
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease;
  }
  @keyframes modalIn { from { opacity:0; transform: scale(0.95) translateY(10px); } to { opacity:1; transform: none; } }

  /* Login page */
  #login-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1623 0%, #1a2a4a 50%, #0f1623 100%);
    z-index: 200;
  }
  .login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 420px;
    max-width: 95vw;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  }
  
  
  /*<div style="width:85px;height:40px;border-radius:10px;background:linear-gradient(135deg, #4d586a00, #00000000);display:flex;align-items:center;justify-content:center;color:white;font-size:16px;flex-shrink:0;">*/
       
  
  
  
  .login-logo-ring {
    width: 85px; height: 40px;
   
    display: flex; align-items: center; justify-content: center;
    /*font-size: 22px; color: white;*/
    /*box-shadow: 0 8px 20px rgba(59,130,246,0.4);*/
  }
  .password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94a3b8; }

  /* Avatar */
  .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 13px;
  }
  .avatar-lg {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 24px;
  }

  /* Chart bar */
  .chart-bar {
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 6px 6px 0 0;
    transition: height 0.6s ease;
    width: 32px;
  }

  /* Toast */
  .toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: #0f172a;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    z-index: 999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    max-width: 320px;
  }
  .toast.show { transform: translateX(0); }
  .toast.success { border-left: 3px solid #22c55e; }
  .toast.error { border-left: 3px solid #ef4444; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

  /* Search */
  .search-box {
    display: flex; align-items: center; gap: 10px;
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
  }
  .search-box input { background: transparent; outline: none; font-size: 14px; color: var(--text-primary); font-family: 'Plus Jakarta Sans', sans-serif; width: 200px; }

  /* Progress */
  .progress-bar { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
  .progress-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }

  /* Dropdown */
  .dropdown { position: relative; }
  .dropdown-menu {
    position: absolute;
    right: 0; top: calc(100% + 8px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 80;
    display: none;
    overflow: hidden;
  }
  .dropdown-menu.open { display: block; }
  .dropdown-menu a, .dropdown-menu button {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
    background: none; border: none; width: 100%; text-align: left;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
  }
  .dropdown-menu a:hover, .dropdown-menu button:hover { background: #f8fafc; }

  /* Notification dot */
  .notif-dot {
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute; top: 2px; right: 2px;
    border: 2px solid white;
  }

  /* Tab */
  .tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  .tab-btn.active { background: var(--accent); color: white; }
  
  
  /* User profile hero */
  .profile-hero-bg {
    height: 130px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%);
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
  }
  .profile-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .profile-avatar-wrap {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 30px; font-weight: 800;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: absolute;
    bottom: -44px; left: 28px; z-index: 3;
  }

  
   /* Source card */
  .source-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: white;
    transition: box-shadow 0.2s;
  }
  .source-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.07); }

  /* Q&A card */
  .qa-card {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: white;
  }
  .qa-question {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .qa-answer {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .q-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .a-icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }
  
    /* Tabs */
  .tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  .tab-btn.active { background: var(--accent); color: white; }

  /* Section tab content */
  .tab-content { display: none; }
  .tab-content.active { display: block; }
  
  .profile-hero-bg{
    position: relative;
    min-height: 120px;
    overflow: visible;
}

.profile-hero-bg::before,
.profile-hero-bg::after{
    pointer-events: none;
}

.profile-status-box{
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 5;
}
.profile-status-box form,
.profile-status-box select{
    position: relative;
    z-index: 6;
}
.profile-avatar-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.profile-avatar-fallback{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#4f46e5,#7c3aed);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

@media (max-width: 768px){
    .profile-avatar-wrap{
        width: 78px;
        height: 78px;
        bottom: -35px;
    }
    .profile-status-box{
        position: static;
        margin: 14px 14px 0 14px;
    }
}

/* placedetail*/
 .hero-wrap{width:100%;height:300px;overflow:hidden;border-radius:12px 12px 0 0;background:#0f1623;position:relative;}
  .hero-img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
  .hero-placeholder{width:100%;height:300px;background:linear-gradient(135deg,#1e3a5f 0%,#0f1623 60%,#1a2236 100%);border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;}
  .hero-placeholder::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 30% 50%,rgba(59,130,246,.18) 0%,transparent 65%);}
  .star-filled{color:#f59e0b;}
  .star-empty{color:#cbd5e1;}
  .rating-bar-bg{background:#e2e8f0;border-radius:99px;height:6px;overflow:hidden;}
  .rating-bar-fill{height:6px;border-radius:99px;background:linear-gradient(90deg,#f59e0b,#fbbf24);}
  .album-card{border:1px solid #e2e8f0;
  border-radius:12px;
  overflow:hidden;
  transition:box-shadow .2s,transform .18s;
  background:white; display: flex;
    flex-direction: column;}
    .album-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    flex-shrink: 0;
}
.album-content {
    padding: 10px 12px 12px;
}

  .album-card:hover{box-shadow:0 8px 28px rgba(59,130,246,.10);transform:translateY(-2px);}
  .album-placeholder{width:100%;height:120px;background:linear-gradient(135deg,#eff6ff,#dbeafe);display:flex;align-items:center;justify-content:center;}
  .info-pill{display:inline-flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:4px 12px;font-size:13px;font-weight:500;color:#334155;}
  .section-heading{font-size:15px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:8px;margin-bottom:16px;}
  .section-heading i{color:#3b82f6;font-size:14px;}
  .detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  .detail-item{background:#f8fafc;border-radius:10px;padding:14px;}
  .detail-label{font-size:11px;color:#94a3b8;font-weight:700;text-transform:uppercase;letter-spacing:.5px;}
  .detail-value{font-size:14px;font-weight:600;color:#0f172a;margin-top:4px;}
  .user-card{display:flex;align-items:center;gap:14px;padding:16px;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0;}
  .map-placeholder{width:100%;height:240px;background:linear-gradient(135deg,#f0f4ff,#e8f0fe);border-radius:12px;display:flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;flex-direction:column;gap:10px;}


/*Image preview on place details*/
.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.image-preview-modal.show {
    display: flex;
}

.preview-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
}