/* ===== 3B SECURE VAULT - CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@400;600;700;800&display=swap');

:root {
  --blue-primary: #1565C0;
  --blue-dark: #0D47A1;
  --blue-deeper: #082d6b;
  --blue-light: #1976D2;
  --blue-pale: #E3F2FD;
  --blue-accent: #42A5F5;
  --white: #FFFFFF;
  --off-white: #F8FAFF;
  --text-dark: #0A1628;
  --text-mid: #3D4F6B;
  --text-muted: #7A8BA6;
  --border: #DDE4F0;
  --input-bg: #F4F7FC;
  --error: #EF5350;
  --success: #43A047;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(21,101,192,0.08);
  --shadow-md: 0 8px 32px rgba(21,101,192,0.12);
  --shadow-lg: 0 20px 60px rgba(21,101,192,0.18);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ---- Left Panel ---- */
.login-left {
  width: 48%;
  background: var(--blue-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

/* Background circles decoration */
.login-left::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -120px; left: -120px;
}
.login-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -80px; right: -80px;
}

.left-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 400px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.brand-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.brand-icon svg { width: 26px; height: 26px; color: #fff; }
.brand-name-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Illustration area */
.illustration-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  margin: 0 auto 40px;
  position: relative;
}
.illustration-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.illustration-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.illustration-placeholder svg {
  width: 85%; height: 85%;
  opacity: 0.9;
}

.left-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.left-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* Dots indicator */
.left-dots {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 36px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ---- Right Panel ---- */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--white);
}

.login-form-wrap {
  width: 100%;
  max-width: 420px;
}

.form-header {
  margin-bottom: 32px;
}
.form-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-subheading {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Social login buttons */
.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}
.social-btn:hover {
  border-color: var(--blue-primary);
  background: var(--blue-pale);
}
.social-btn svg, .social-btn img { width: 20px; height: 20px; }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Form fields */
.form-group {
  display: flex; flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.field-wrap { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

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

.field-icon {
  position: absolute; left: 14px;
  color: var(--text-muted);
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.field-icon svg { width: 18px; height: 18px; }

.field-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit; font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--input-bg);
  outline: none;
  transition: var(--transition);
}
.field-input::placeholder { color: var(--text-muted); }
.field-input:focus {
  border-color: var(--blue-primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.password-toggle {
  position: absolute; right: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex; align-items: center;
}
.password-toggle:hover { color: var(--blue-primary); }
.password-toggle svg { width: 18px; height: 18px; }

/* Forgot password */
.field-footer {
  display: flex; justify-content: flex-end;
  margin-top: -8px;
}
.forgot-link {
  font-size: 0.82rem; font-weight: 500;
  color: var(--blue-primary);
  transition: var(--transition);
}
.forgot-link:hover { color: var(--blue-dark); text-decoration: underline; }

/* Remember me */
.remember-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.remember-row input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--blue-primary);
  cursor: pointer;
}
.remember-row label {
  font-size: 0.87rem; color: var(--text-mid); cursor: pointer;
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--blue-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 24px;
}
.login-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(21,101,192,0.4);
}
.login-btn:active { transform: translateY(0); }

/* Signup link */
.signup-row {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.signup-row a {
  color: var(--blue-primary);
  font-weight: 600;
  transition: var(--transition);
}
.signup-row a:hover { color: var(--blue-dark); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .login-page { flex-direction: column; }
  .login-left {
    width: 100%;
    padding: 48px 32px 40px;
    min-height: auto;
  }
  .illustration-wrap { max-width: 220px; }
  .left-title { font-size: 1.6rem; }
  .login-right { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .login-left { padding: 36px 20px 32px; }
  .illustration-wrap { max-width: 180px; }
  .login-right { padding: 32px 20px; }
  .social-btns { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ===== HOME / DASHBOARD PAGE ===== */

/* ---- Navbar ---- */
.dashboard-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(21,101,192,0.07);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand-icon {
  width: 38px; height: 38px;
  background: var(--blue-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.nav-brand-icon svg { width: 22px; height: 22px; color: #fff; }
.nav-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.nav-search-wrap {
  flex: 1;
  max-width: 420px;
  margin: 0 32px;
  position: relative;
}
.nav-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
}
.nav-search-icon svg { width: 16px; height: 16px; }
.nav-search-input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--input-bg);
  outline: none;
  transition: var(--transition);
}
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-input:focus {
  border-color: var(--blue-primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border: none;
}
.nav-icon-btn:hover { background: var(--blue-pale); color: var(--blue-primary); }
.nav-icon-btn svg { width: 20px; height: 20px; }

.notif-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #EF5350;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.nav-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 4px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
}
.nav-user:hover { background: var(--blue-pale); }

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-user-info { text-align: left; }
.nav-greeting {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1;
}
.nav-username {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.nav-logout {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: transparent;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.nav-logout:hover {
  border-color: #EF5350;
  color: #EF5350;
  background: #FEF0F0;
}
.nav-logout svg { width: 15px; height: 15px; }

/* ---- Dashboard Layout ---- */
.dashboard-page { min-height: 100vh; background: var(--off-white); }
.dashboard-main { max-width: 1200px; margin: 0 auto; padding: 42px 32px 80px; }

/* ---- Hero Banner ---- */
.dashboard-hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 60%, var(--blue-deeper) 100%);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 200px;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -100px; right: -80px;
}
.dashboard-hero::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -60px; right: 200px;
}

.hero-text { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-welcome {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-welcome span { color: var(--blue-accent); }
.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stat { color: rgba(255,255,255,0.9); }
.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.hero-illustration {
  position: relative; z-index: 2;
  flex-shrink: 0;
}
.hero-illustration svg { width: 180px; height: 180px; opacity: 0.9; }

/* ---- Section Header ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  text-decoration: none;
}
.section-link:hover { gap: 8px; }
.section-link svg { width: 14px; height: 14px; }

/* ---- Category Cards Grid ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-color, var(--blue-pale)) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.category-card:hover {
  border-color: #d6e4ffdd;
  transform: scale(0.5);
  box-shadow: 0 4px 20px rgba(21,101,192,0.09);
}
.category-card:hover::before { opacity: 1; }

.card-icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.category-card:hover .card-icon-wrap { transform: scale(1.08); }
.card-icon-wrap svg { width: 32px; height: 32px; }

.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}
.card-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-primary);
  position: relative;
  z-index: 1;
}

/* ---- Recent Activity ---- */
.recent-section { margin-bottom: 48px; }
.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.activity-item:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
}
.activity-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-icon svg { width: 22px; height: 22px; }
.activity-info { flex: 1; }
.activity-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}
.activity-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.activity-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- Footer ---- */
.dashboard-footer {
  background: var(--text-dark);
  padding: 28px;
  text-align: center;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-accent);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-hero { padding: 40px 40px; }
  .hero-illustration { display: none; }
}
@media (max-width: 768px) {
  .dashboard-nav { padding: 0 20px; }
  .nav-search-wrap { display: none; }
  .nav-user-info { display: none; }
  .dashboard-main { padding: 24px 20px 60px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dashboard-hero { padding: 32px 28px; }
  .hero-stats { gap: 20px; }
  .nav-brand-name { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-hero { padding: 28px 20px; }
}
/* ===== HAMBURGER & MOBILE MENU ===== */
.hamburger {
  width: 38px; height: 38px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--blue-pale); }
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  pointer-events: none;
}
.mobile-menu.open { pointer-events: all; }

.menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,22,40,0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.mobile-menu.open .menu-overlay { opacity: 1; }

.menu-panel {
  position: fixed;
  top: 0; left: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--white);
  padding: 28px 20px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(21,101,192,0.12);
  z-index: 10000;
}
.mobile-menu.open .menu-panel { transform: translateX(0); }

.menu-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.menu-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition);
  background: none; border: none; cursor: pointer;
}
.menu-close:hover { background: var(--border); color: var(--text-dark); }

.menu-nav {
  display: flex; flex-direction: column; gap: 4px;
}
.menu-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  text-decoration: none;
}
.menu-nav a:hover {
  background: var(--blue-pale);
  color: var(--blue-primary);
  padding-left: 18px;
}
.menu-nav a svg { flex-shrink: 0; }