@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Manrope:wght@200..800&family=Outfit:wght@100..900&display=swap");
:root {
  --color-main: #b40fe1;

  /* --accent: #00aaff; */
  --accent-soft: rgba(0, 170, 255, 0.15);
  --accent: #22c35e;

  /* Light Mode Colors (Default) */
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111;
  --muted: #777;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
  --input-border: #ccc;
  --input-bg: #ffffff;
  --hover-bg: #f0f0f0;

  --max-width: 1250px;

  --max-padding: calc((100% - 1250px) / 2);

  --font-manrope: "Manrope", sans-serif;
  --font-oufit: "Outfit", sans-serif;
  --font-dm-sans: "DM Sans", sans-serif;
}

/* Dark Mode Colors */
html.dark-mode {
  --bg: #1a1a1a;
  --card: #2d2d2d;
  --text: #e8e8e8;
  --muted: #999;
  --border: #404040;
  --shadow: rgba(0, 0, 0, 0.3);
  --input-border: #505050;
  --input-bg: #2d2d2d;
  --hover-bg: #3a3a3a;
}
* {
  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: 100%;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.not-found-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.not-found-container h1 {
  font-size: 4rem;
  font-family: var(--font-dm-sans);
  line-height: 1;
  font-weight: 700;
}
.not-found-container h3 {
  font-size: 1.3rem;
  font-family: var(--font-dm-sans);
  font-weight: 500;
  line-height: 2;
}
.not-found-container a {
  text-decoration: none;
  font-family: var(--font-oufit);
  background: var(--accent);
  padding: 8px 15px;
  border-radius: 80px;
  color: white;
  margin: 20px 0;
}
.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: 70px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
  /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); */
}
nav h3 {
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}
nav i {
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}
.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;
}
