/* ==========================================================================
   OMIToolKit Ultra-Premium SaaS Design Token System (2026 Grid Edition)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --primary-dark: #4f46e5;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #cbd5e1;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

/* Base Body Resets */
.page-wrap * {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}

/* Layout Grid System */
.page-wrap {
  max-width: 1240px;
  margin: 40px auto !important;
  padding: 0 24px 100px !important;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  background: var(--bg-main);
}

@media(max-width: 992px) {
  .page-wrap {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    display: none !important;
  }
}

/* Premium Widget Box (shadcn/ui style) */
.tool-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-premium);
  position: relative;
}

/* Minimalist Slick Dropzone */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 60px 30px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropzone:hover, .dropzone.over {
  border-color: var(--primary);
  background: #fbfbff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.dz-emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
}

.dz-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dz-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Premium SaaS Buttons */
.btn-pick {
  background: var(--text-main);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pick:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-join {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-join:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.btn-join:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* File List & Items (Clean Row Design) */
.file-list {
  margin-top: 28px;
}

.fl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.fl-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.fl-count {
  background: #e0e7ff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
}

.btn-clear {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-clear:hover {
  text-decoration: underline;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.fi-handle {
  color: var(--text-light);
  cursor: grab;
  font-size: 1.1rem;
}

.fi-ext {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 6px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.fi-info {
  flex: 1;
  min-width: 0;
}

.fi-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fi-size {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-rm {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s;
}

.btn-rm:hover {
  color: #ef4444;
}

/* Dropdown Inputs & Layout Rows */
.out-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.out-lbl {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.out-sel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.out-sel:focus {
  border-color: var(--text-light);
}

/* Smart Modern Progress Bar */
.prog {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.prog-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.prog-lbl, .prog-pct {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.prog-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.prog-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.prog-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Elegant Success Download States */
.dl {
  margin-top: 24px;
  padding: 32px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  text-align: center;
}

.dl-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.dl-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 6px;
}

.dl-sub {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 24px;
}

.dl-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-dl {
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-dl:hover {
  background: #15803d;
}

.btn-again {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-again:hover {
  background: var(--bg-main);
}

/* Documentation / How It Works Steppers */
.how-box {
  margin-top: 32px;
}

.how-box h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.step-n {
  width: 28px;
  height: 28px;
  background: var(--bg-main);
  color: var(--text-main);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.step-t {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-d {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Professional SEO Content Block */
.art-box {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.art-box h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 32px 0 14px;
}

.art-box h2:first-child {
  margin-top: 0;
}

.art-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.art-box ul {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.art-box li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.art-box li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-weight: bold;
}

/* Clean Professional Table Layout */
.fmt-tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.fmt-tbl th {
  background: var(--bg-main);
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.fmt-tbl td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  background: #ffffff;
}

.fmt-tbl tr:last-child td {
  border-bottom: none;
}

.yes { color: #16a34a; font-weight: 600; }
.no { color: var(--text-light); }

/* Sidebar Framework styling */
.sidebar {
  position: sticky;
  top: 100px;
}

.rel-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-premium);
}

.rel-box h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rel-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.15s;
}

.rel-link:last-child {
  border-bottom: none;
}

.rel-link:hover {
  color: var(--primary);
}

.rel-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rel-n {
  font-size: 0.9rem;
  font-weight: 600;
}

.rel-d {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Smart Auto-Adjust Responsive Ad slots Engine */
.ad-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 20px auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  clear: both;
}

.ad-unit {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  margin: 0 auto !important;
}

.ad-unit ins, .ad-unit iframe, .ad-unit script {
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

.sb-ad {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  margin: 0 auto 24px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden;
  background: #ffffff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
}