/* shell.css — Dukovo Shell Universal Styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #6366f1;
  --primary-dark: #4f46e5;
  --bg:           #f8f9ff;
  --surface:      #ffffff;
  --border:       #e5e7f0;
  --text:         #1e1e2e;
  --text-muted:   #6b7280;
  --success:      #10b981;
  --danger:       #ef4444;
  --radius:       10px;
  --shadow:       0 1px 4px rgba(0,0,0,.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ── */
.shell-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.shell-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
}
.shell-logo {
  font-size: 1.2rem; font-weight: 700;
  color: var(--primary); text-decoration: none;
  flex-shrink: 0;
}
.shell-nav {
  display: flex; gap: 4px; flex: 1;
  flex-wrap: wrap;
}
.shell-nav-link {
  padding: 6px 14px; border-radius: 6px;
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; transition: all .15s;
}
.shell-nav-link:hover, .shell-nav-link.active {
  background: #eef2ff; color: var(--primary);
}
.shell-header-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.shell-username { font-size: 14px; color: var(--text-muted); }

/* ── MAIN ── */
.shell-main { max-width: 1200px; margin: 0 auto; padding: 32px 24px; min-height: 80vh; }

/* ── BUTTONS ── */
.shell-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  border: none; transition: all .15s;
}
.shell-btn-primary   { background: var(--primary); color: #fff; }
.shell-btn-primary:hover { background: var(--primary-dark); }
.shell-btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.shell-btn-secondary:hover { background: var(--bg); }
.shell-btn-ghost     { background: transparent; color: var(--text-muted); }
.shell-btn-ghost:hover { background: var(--bg); }
.shell-btn-sm        { padding: 5px 12px; font-size: 13px; }
.shell-btn-lg        { padding: 12px 28px; font-size: 16px; }
.shell-btn-sm.shell-btn { padding: 4px 10px; font-size: 12px; border-radius: 6px; }

/* ── HOMEPAGE ── */
.shell-hero {
  text-align: center; padding: 60px 20px 40px;
}
.shell-hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; }
.shell-hero p  { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 28px; }

.shell-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-top: 16px;
}
.shell-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center; text-decoration: none;
  color: var(--text); transition: all .15s;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.shell-page-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(99,102,241,.12);
  transform: translateY(-2px);
}
.shell-page-icon  { font-size: 2rem; }
.shell-page-label { font-size: 14px; font-weight: 500; }

/* ── PAGE HEADER ── */
.shell-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.shell-page-header h1 { font-size: 1.5rem; font-weight: 600; }
.shell-page-actions   { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── FORM ── */
.shell-form { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.shell-fields { display: grid; gap: 20px; }
.shell-field  { display: flex; flex-direction: column; gap: 6px; }
.shell-label  { font-size: 14px; font-weight: 500; color: var(--text); }
.shell-required { color: var(--danger); }
.shell-input {
  padding: 9px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px;
  background: var(--surface); color: var(--text);
  transition: border-color .15s; width: 100%;
}
.shell-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
textarea.shell-input { min-height: 100px; resize: vertical; }
.shell-field-tip { font-size: 12px; color: var(--text-muted); }

.shell-radio-group   { display: flex; gap: 16px; flex-wrap: wrap; }
.shell-radio-label   { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.shell-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.shell-form-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }

/* ── STEPS ── */
.shell-steps {
  display: flex; gap: 0; margin-bottom: 28px;
  overflow-x: auto;
}
.shell-step {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--surface);
  border: 1px solid var(--border); font-size: 13px;
  color: var(--text-muted); flex: 1;
}
.shell-step.active { background: #eef2ff; color: var(--primary); border-color: var(--primary); font-weight: 500; }
.shell-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.shell-step.active .shell-step-num { background: var(--primary); color: #fff; }

/* ── TABLE / LIST ── */
.shell-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.shell-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.shell-table th {
  background: var(--bg); padding: 11px 14px;
  font-size: 12px; font-weight: 600; text-align: left;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.shell-table td {
  padding: 11px 14px; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.shell-table tr:last-child td { border-bottom: none; }
.shell-table tr:hover td { background: var(--bg); }

.shell-pagination { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.shell-page-btn {
  padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; text-decoration: none; color: var(--text);
}
.shell-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── ALERTS ── */
.shell-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.shell-alert-success { background: #d1fae5; color: #065f46; }
.shell-alert-error   { background: #fee2e2; color: #991b1b; }
.shell-empty  { text-align: center; padding: 48px; color: var(--text-muted); }
.shell-error  { background: #fee2e2; color: #991b1b; padding: 16px; border-radius: 8px; }

/* ── SEARCH ── */
.shell-search-form { display: flex; gap: 8px; }

/* ── ERROR PAGES ── */
.shell-error-page { text-align: center; padding: 80px 20px; }
.shell-error-page h2 { font-size: 1.8rem; margin-bottom: 12px; }
.shell-error-page p  { color: var(--text-muted); margin-bottom: 24px; }

/* ── FOOTER ── */
.shell-footer {
  text-align: center; padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; margin-top: 40px;
}
.shell-footer a { color: var(--primary); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .shell-header-inner { flex-wrap: wrap; }
  .shell-nav { display: none; }   /* mobile mein hamburger banana — abhi hide */
  .shell-hero h1 { font-size: 1.8rem; }
  .shell-main { padding: 20px 16px; }
  .shell-form { padding: 20px 16px; }
}
