/* ============================================================
   GLOBAL
   ============================================================ */
body {
  overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(160deg, #141428 0%, #1c1c35 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand-icon {
  font-size: 24px;
  color: var(--accent);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

/* =====================================================
MAIN CONTENT AREA
===================================================== */
.main-home {
  margin-left: 240px;
  padding: 120px 40px 60px;
  width: calc(100vw - 240px);
  max-width: none;
  min-width: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui;
}

body {
  background: #010d27;
  color: #fff;
  overflow-x: hidden;
  margin: 0;
  overflow-x: hidden;
}


:root {
  --navbar-height: 60px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #111827;
  height: var(--navbar-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.nav-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.search-bar input {
  padding: 8px;
  border-radius: 8px;
  border: none;
  outline: none;
}

.search-btn {
  width: 38px;
  height: 38px;
  border-radius: 50px;
  border: none;
  background: #3b82f6;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.container {
  display: flex;
  min-height: calc(100vh - 60px);
  width: 100%;

}

.sidebar {
   position: fixed;
  top: var(--navbar-height);  
  left: 0;
  width: 230px;
  height: calc(100vh - var(--navbar-height));
  background: #0b1220;
  overflow-y: auto;
  z-index: 900;
}

.sidebar h2 {
  margin-bottom: 15px;
  color: #fff;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li a {
  display: block;
  padding: 10px;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 6px;
}

.sidebar ul li a:hover {
  color: #fff;
  background: #1f2937;
}

.main {
  margin-top: var(--navbar-height);
  margin-left: 230px;
  padding: 30px;
}

.page-header {
  margin-bottom: 25px;
}

.page-header h1 {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff; 
}

.page-header p {
  color: #94a3b8;
  font-size: 15px;
}

.sidebar, .main {
  box-sizing: border-box;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.form-card {
  background: #111827;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #1f2937;
  transition: 0.3s ease;
  color: #ffffff;
}

.form-card:hover {
  transform: translateY(-6px);
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 8px;
  border: none;
  background: #0b1220;
  color: #fff;
  outline: none;
}

.btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
  background: #3b82f6;
  color: white;
  cursor: pointer;
}

.btn.primary { background: #22c55e; }
.btn.dark { background: #ef4444; }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.actions button {
  flex: 1;
  padding: 6px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.code {
  display: none;
  background: #000;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 12px;
}

#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #22c55e;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  z-index: 9999;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -100%;
    transition: 0.3s;
  }

  .sidebar.active {
    left: 0;
  }
}

.form-card h3 {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============================================================
   NEW FORM COMPONENTS CSS
   ============================================================ */
   
/* 1. Subscription Form */
.sub-row {
  display: flex;
  gap: 10px;
}
.sub-input {
  flex: 1;
}
.sub-btn {
  width: auto;
  padding: 10px 20px;
  margin-top: 6px;
}

/* 2. Comment Form */
.comment-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}
.comment-actions .form-btn {
  width: auto;
  padding: 8px 16px;
  margin-top: 0;
}
.outline-btn {
  background: transparent;
  border: 1px solid #4b5563;
  color: #d1d5db;
}
.outline-btn:hover {
  background: rgba(255,255,255,0.05);
}

/* 3. Feedback Emojis */
.emoji-group {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}
.emoji-label {
  cursor: pointer;
  font-size: 32px;
  filter: grayscale(100%);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emoji-label input {
  display: none;
}
.emoji-label:hover, .emoji-label input:checked + span {
  filter: grayscale(0%);
  transform: scale(1.2);
}

/* 5. Profile Info Form */
.form-row {
  display: flex;
  gap: 15px;
}
.form-row .form-field {
  flex: 1;
}

/* 6. Simple Search Form */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrapper i {
  position: absolute;
  left: 15px;
  color: #9ca3af;
}
.search-input-wrapper input {
  padding-left: 40px;
  padding-right: 90px;
}
.inline-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  margin: 0;
  padding: 6px 14px;
}

/* 7. Settings Toggles */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #374151;
}
.toggle-row:last-of-type {
  border-bottom: none;
}
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #4b5563;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: #3b82f6;
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.slider.round {
  border-radius: 24px;
}
.slider.round:before {
  border-radius: 50%;
}

/* 8. Payment Form */
.payment-card .form-row {
  display: flex;
  gap: 15px;
}
.payment-card .form-row .form-field {
  flex: 1;
}

/* 9. Modern Dark Login */
.modern-dark-login {
  background: #0f172a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #1e293b;
}
.dark-input {
  background: transparent;
  border-bottom: 2px solid #334155;
  border-radius: 0;
  padding-left: 0;
  transition: 0.3s;
}
.dark-input:focus {
  border-bottom-color: #8b5cf6;
}
.neon-btn {
  background: transparent;
  border: 1px solid #8b5cf6;
  color: #8b5cf6;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}
.neon-btn:hover {
  background: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* 10. OTP Verification Form */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
}
.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #374151;
}
.otp-input:focus {
  border-color: #3b82f6;
}
