@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
:root {
  --color-main: #00a8cc;

  --accent-soft: rgba(0, 168, 204, 0.15);
  --accent: #00D4FF;

  /* Dark Mode Colors (Default - Premium Indigo) */
  --bg: #020d1a;
  --card: rgba(10, 8, 35, 0.85);
  --text: #f2f0ff;
  --muted: #8888bb;
  --border: rgba(0, 212, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.5);
  --input-border: rgba(0, 212, 255, 0.2);
  --input-bg: rgba(255, 255, 255, 0.04);
  --hover-bg: rgba(0, 168, 255, 0.08);

  --gold: #00D4FF;
  --gold-light: #40E0FF;
  --purple: #00a8cc;
  --purple-light: #40E0FF;

  --max-width: 1250px;
  --max-padding: calc((100% - 1250px) / 2);

  --font-manrope: "Inter", sans-serif;
  --font-oufit: "Inter", sans-serif;
  --font-dm-sans: "Inter", sans-serif;
}

/* Dark Mode Colors (same - always dark) */
html.dark-mode {
  --bg: #020d1a;
  --card: rgba(10, 8, 35, 0.9);
  --text: #f2f0ff;
  --muted: #8888bb;
  --border: rgba(0, 212, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.6);
  --input-border: rgba(0, 212, 255, 0.2);
  --input-bg: rgba(255, 255, 255, 0.04);
  --hover-bg: rgba(0, 168, 255, 0.1);
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--font-manrope);
  border: none;
  outline: none;
  stroke: none;
}

/* Global click bounce */
button,
.btn,
a.button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:active,
.btn:active,
a.button:active,
input[type="button"]:active,
input[type="submit"]:active {
  transform: scale(0.96);
}
/* Global click bounce */
html,
body {
  width: 100%;
  height: 100vh;
  background: #f7f9fc;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.not-found-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 20px;
}
.not-found-container h1 {
  font-size: 6rem;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  font-weight: 800;
  color: #0088cc;
  margin: 0 0 10px;
}
.not-found-container h3 {
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 24px;
}
.not-found-container a {
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  background: #0088cc;
  padding: 12px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
  transition: all 0.3s;
}
.not-found-container a:hover {
  background: #0077b3;
  transform: translateY(-2px);
}
.user-page {
  width: 100%;
  background: var(--bg);
  max-width: 420px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 100px;
  box-shadow: 0 0 5px var(--shadow);
  transition: background 0.3s ease;
  
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.user-page::-webkit-scrollbar {
  display: none;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  min-height: 60px;
  background: rgba(6, 7, 26, 0.9);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease;
}
nav h3 {
  font-size: 20px;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 20%, #40E0FF 55%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
nav i {
  font-size: 20px;
  cursor: pointer;
  color: #00D4FF;
}
.item-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 10px;
}

.item-loader p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.loader {
  width: 38px;
  height: 38px;
  border: 4px dotted var(--shadow);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.page-bar {
  box-shadow: 0 0 3px var(--shadow);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease;
}
.back-btn {
  font-size: 18px;
  cursor: pointer;
}
.user-page .page-title {
  font-size: 18px !important;
  width: 100%;
  margin-left: 10px;
}

/* otp view */

.otp-box {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0;
}

.otp-input {
  width: 44px !important;
  /* height: 50px; */
  text-align: center;
  font-size: 20px;
  border-radius: 8px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1/1 !important;
  flex: 1;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.otp-input:focus {
  border-color: var(--accent);
}
.chat-icon{
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 10px;
  width: 60px;
  aspect-ratio: 1/1;
  border-radius: 50px;
  background: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-icon i{
  color: white;
  font-size: 18px;
}

/* =====================================================
   DARK MODE TOGGLE BUTTON STYLES
   ===================================================== */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-manrope);
}

.theme-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
}

.theme-toggle i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.theme-toggle.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.theme-toggle.active i {
  transform: rotate(180deg);
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .theme-toggle {
    padding: 6px 12px;
    font-size: 12px;
  }

  .theme-toggle i {
    font-size: 14px;
  }

  .theme-toggle span {
    display: none;
  }

  .theme-toggle span.mobile-label {
    display: inline;
  }
}

/* Theme toggle as menu item */
.menu-item.theme-toggle {
  background: transparent;
  padding: 14px 12px;
  border: none;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font-manrope);
  color: var(--text);
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 14px 12px;
  text-decoration: none;
  border-radius: 10px;
  min-height: 50px;
  transition: background 0.2s ease;
  pointer-events: auto !important;
}

.menu-item.theme-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--border);
}

.menu-item.theme-toggle:active {
  transform: scale(0.96);
}

.menu-item.theme-toggle i {
  width: 22px;
  text-align: center;
  font-size: 16px;
  color: var(--text);
}

.menu-item.theme-toggle span {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.menu-item.theme-toggle .arrow {
  font-size: 12px;
  color: var(--muted);
}

/* Icon-only theme toggle (for navbar) */
.theme-toggle[style*="padding: 6px"] {
  border: none !important;
  background: transparent !important;
  color: var(--text) !important;
  pointer-events: auto !important;
}

.theme-toggle[style*="padding: 6px"]:hover {
  background: var(--hover-bg) !important;
}

html.dark-mode .menu-item {
  color: var(--text);
  background: var(--card);
}

html.dark-mode .menu-item:hover {
  background: var(--hover-bg);
}

html.dark-mode .menu-item .icon {
  color: var(--text);
}

html.dark-mode .menu-item .arrow {
  color: var(--muted);
}

html.dark-mode .menu-item.logout {
  background: rgba(229, 57, 53, 0.15);
}

html.dark-mode .menu-card {
  background: var(--card);
}

/* Smooth color transition across the entire page */
* {
  transition-property: background-color, color, border-color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}
