
/* ---------- LAYOUT CORRECTIONS ---------- */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--navbar-h);
  padding: 48px 56px;
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: var(--body-bg);
  transition: margin-left var(--transition);
}


/* Ambient space background gradients on dark mode */
body.dark-mode {
  --bg-primary: #070913;
  --bg-secondary: rgb(13 16 31 / 45%);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border: rgb(255 255 255 / 5%);

  background-image: 
    radial-gradient(circle at 10% 20%, rgb(235 104 53 / 5%) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgb(108 92 231 / 4%) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Page Hero Premium Glowing Style */
.page-hero {
  background: linear-gradient(135deg, rgb(235 104 53 / 10%) 0%, rgb(108 92 231 / 8%) 50%, rgb(13 16 31 / 50%) 100%) !important;
  border: 1px solid rgb(255 255 255 / 5%) !important;
  box-shadow: 0 20px 40px rgb(0 0 0 / 30%) !important;
  backdrop-filter: blur(12px);
}

.page-hero-right {
  position: relative;
}

.page-hero-right::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgb(235 104 53 / 12%) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Hero inputs preview widgets */
.hero-inputs-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgb(13 16 31 / 65%);
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: var(--radius-md);
  padding: 24px;
  min-width: 250px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.preview-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgb(255 255 255 / 2%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: all 0.3s ease;
}

.preview-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgb(235 104 53 / 20%);
  background: rgb(255 255 255 / 4%);
}

.preview-icon {
  font-size: 13px;
  color: #8a9bc0;
  flex-shrink: 0;
}

.preview-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
}

.preview-input::placeholder {
  color: rgb(255 255 255 / 30%);
}

.preview-range {
  width: 100%;
  appearance: none;
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 60%, rgb(255 255 255 / 10%) 60%);
  border-radius: 999px;
  outline: none;
}

.preview-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgb(235 104 53 / 50%);
}

/* Category Filter Bar */
.filter-bar {
  background: rgb(255 255 255 / 2%);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgb(255 255 255 / 5%);
  backdrop-filter: blur(12px);
  margin-bottom: 40px;
}

.filter-btn {
  border: 1px solid rgb(255 255 255 / 8%) !important;
  background: rgb(255 255 255 / 3%) !important;
  color: #8a9bc0 !important;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.filter-btn:hover {
  border-color: rgb(235 104 53 / 30%) !important;
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), #ff8e53) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgb(235 104 53 / 25%) !important;
}

.filter-search input {
  padding: 10px 16px 10px 38px !important;
  background: rgb(255 255 255 / 2%) !important;
  border: 1px solid rgb(255 255 255 / 8%) !important;
  border-radius: 40px !important;
  transition: all 0.3s ease !important;
  width: 200px !important;
}

.filter-search input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 15px rgb(235 104 53 / 15%) !important;
  width: 250px !important;
  background: rgb(255 255 255 / 4%) !important;
}

/* Grids and Headers */
.inputs-section {
  margin-bottom: 56px;
}

.section-header-row {
  border-bottom: 1px solid rgb(255 255 255 / 6%) !important;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.inputs-section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-count {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Glassmorphic Component Card */
.component-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.component-card:hover {
  border-color: rgb(235 104 53 / 35%) !important;
  box-shadow: 0 20px 40px rgb(235 104 53 / 8%), 0 0 0 1px rgb(235 104 53 / 5%) !important;
  transform: translateY(-6px) !important;
}

.card-preview {
  background: var(--body-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  min-height: 110px;
  transition: all 0.3s ease;
}

.component-card:hover .card-preview {
  background: var(--card-bg) !important;
  border-color: var(--accent) !important;
}

/* Demo input showcases custom styling & focus halos */
.demo-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--body-bg) !important;
  border: 1.5px solid var(--card-border) !important;
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.demo-input::placeholder {
  color: var(--text-secondary);
}

.demo-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 15px rgba(235, 104, 53, 0.25) !important;
  background: var(--card-bg) !important;
}

.demo-input:disabled {
  background: var(--body-bg) !important;
  border-color: var(--card-border) !important;
  color: var(--text-secondary);
  opacity: 0.6;
  cursor: not-allowed;
}

.demo-input[readonly] {
  background: var(--body-bg) !important;
  border-color: var(--card-border) !important;
  border-style: dashed;
}

/* Select element customization */
select.demo-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a9bc0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  appearance: none;
}

select.demo-input option {
  background: var(--body-bg);
  color: var(--text-primary);
}

/* Custom styles for range slider showcase */
.demo-range {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgb(255 255 255 / 8%);
  outline: none;
  cursor: pointer;
}

.demo-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgb(235 104 53 / 50%);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.demo-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Custom Textarea */
.demo-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--body-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

.demo-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(235, 104, 53, 0.25);
  background: var(--card-bg);
}

/* Color Picker */
.demo-color {
  width: 60px;
  height: 40px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s ease;
}

.demo-color:hover {
  border-color: var(--accent);
}

/* OTP / code input preview */
.otp-input-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 280px;
  margin: 0 auto;
}

.otp-input {
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--body-bg);
  color: var(--text-primary);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  outline: none;
  transition: all 0.3s ease;
}

.otp-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(235, 104, 53, 0.18);
  background: var(--card-bg);
}

/* Checkboxes & Radios */
.demo-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: flex-start;
}

.demo-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.demo-check-label input[type="checkbox"],
.demo-check-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* File Input */
.demo-input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}

.demo-input[type="file"]::file-selector-button {
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.demo-input[type="file"]::file-selector-button:hover {
  background: #d45c28;
  box-shadow: 0 0 10px rgb(235 104 53 / 30%);
}

/* Action buttons */
.copy-btn {
  background: linear-gradient(135deg, var(--accent), #ff8e53) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgb(235 104 53 / 20%) !important;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #d45c28, var(--accent)) !important;
  box-shadow: 0 6px 18px rgb(235 104 53 / 35%) !important;
  transform: translateY(-2px) !important;
}

.copy-btn.copied {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  box-shadow: 0 4px 12px rgb(16 185 129 / 25%) !important;
}

/* Code block styles */
.code-block {
  background: #090a10 !important;
  border: 1px solid rgb(255 255 255 / 5%) !important;
  margin-top: 20px !important;
}

/* Scroll Top Button */
#scroll-top-btn {
  background: linear-gradient(135deg, var(--accent), #ff8e53);
  box-shadow: 0 4px 15px rgb(235 104 53 / 30%);
}

/* ============================================================
   PREMIUM DARK FOOTER
   ============================================================ */
.footer {
  margin-left: 250px;
  background: #090c15 !important;
  padding: 40px 24px;
  border-top: 1px solid rgb(255 255 255 / 5%) !important;
  background: #090c15;
  padding: 30px 20px; /* smaller height */
  border-top: 1px solid rgb(255 255 255 / 5%);
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 20px;
  max-width: 1200px;
  gap: 20px;  
  max-width: 1000px;  
  margin: 0 auto;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #8a9bc0;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-col ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-col ul li a:hover::after {
  width: 100%;
}

.footer-col.newsletter .newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-col.newsletter input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 2%);
  border: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
  outline: none;
  font-size: 13px;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-col ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
  transform: translateX(4px);  
}

.footer-col ul li a:hover::after {
  width: 100%;  
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 4%);
  margin-top: 20px;  
  padding-top: 12px;
  text-align: center;
}

.footer-bottom p {
  color: #6a7a94;
  font-size: 12px;
}


/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-col.brand,
  .footer-col.newsletter {
    grid-column: span 3;
  }
}

@media (max-width: 992px) {
  .main-content {
    margin-left: 0;
    padding: 32px 24px;
  }

  .footer {
    margin-left: 0;
    padding: 60px 24px 30px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col.brand,
  .footer-col.newsletter {
    grid-column: span 1;
  }
}
}
.modern-preview{
  min-height:140px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.input-shell{
  width:100%;
  max-width:320px;
  display:flex;
  align-items:center;
  gap:12px;

  padding:14px 18px;

  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;

  background:
  linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.03)
  );

  backdrop-filter:blur(20px);

  transition:.35s;
}

.input-shell:hover{
  transform:translateY(-3px);
  border-color:#eb6835;
  box-shadow:
  0 15px 40px rgba(235,104,53,.15);
}

.input-shell input{
  flex:1;
  background:none;
  border:none;
  outline:none;
}

.floating-field{
  position:relative;
}

.floating-field input{
  width:100%;
  padding:18px;
  border-radius:16px;
}

.floating-field label{
  position:absolute;
  left:18px;
  top:16px;
  transition:.25s;
}

.floating-field input:focus + label,
.floating-field input:valid + label{
  top:-10px;
  font-size:.75rem;
  color:#eb6835;
}

.filter-bar{
  position:sticky;
  top:80px;

  z-index:20;

  backdrop-filter:blur(18px);

  background:
  rgba(20,20,20,.65);

  border:1px solid rgba(255,255,255,.08);

  border-radius:24px;

  padding:14px;

  margin-bottom:40px;
}

.filter-btn{
  border-radius:999px;

  transition:.3s;
}

.filter-btn:hover{
  transform:translateY(-2px);
}

.filter-btn.active{
  background:#eb6835;
  color:white;

  box-shadow:
  0 10px 25px rgba(235,104,53,.3);
}

.component-meta{
  display:flex;
  gap:12px;
  margin-top:12px;
}

.component-meta span{
  padding:6px 10px;

  border-radius:999px;

  background:
  rgba(255,255,255,.05);

  font-size:.75rem;
}
/* General text fixes */
.card-label,
.card-desc,
.section-count,
.inputs-section-title {
  color: var(--text) !important;
}

/* Placeholder contrast */
.demo-input::placeholder {
  color: var(--muted) !important;
}

/* Input text */
.demo-input {
  color: var(--text) !important;
}

/* Textarea text */
.demo-textarea {
  color: var(--text) !important;
}

.demo-textarea::placeholder {
  color: var(--muted) !important;
}

/* Checkbox & radio labels */
.demo-check-label {
  color: var(--text) !important;
}

/* Select dropdown options */
select.demo-input option {
  color: var(--text) !important;
  background: var(--card);
}


.icon-input{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 14px;
  border:1px solid var(--border-color);
  border-radius:12px;
  background:var(--card-bg);
}

.icon-input input{
  border:none;
  background:transparent;
  width:100%;
  outline:none;
}

.phone-input{
  display:flex;
  gap:8px;
}

.phone-input select,
.phone-input input{
  padding:10px;
  border:1px solid var(--border-color);
  border-radius:10px;
}

.tag-input-demo{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.tag-chip{
  padding:6px 12px;
  border-radius:20px;
  background:#eb6835;
  color:#fff;
  font-size:12px;
}

.rating-demo{
  display:flex;
  gap:6px;
  font-size:20px;
}

.floating-field{
  position:relative;
}

.floating-field input{
  width:100%;
  padding:14px;
  border:1px solid #ccc;
  border-radius:12px;
}

.floating-field label{
  position:absolute;
  left:14px;
  top:14px;
  background:white;
  padding:0 6px;
  transition:.3s;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown)+label{
  top:-10px;
  font-size:}
  font-size:12px;
}

