/* ==========================================================================
   SHAHICRUNCH SIMPLE & CLEAR SEO CRM — STYLESHEET
   Clean, intuitive, and beginner-friendly layout
   ========================================================================== */

:root {
  --simple-gold: #E5A93C;
  --simple-gold-hover: #F5B84C;
  --simple-dark-bg: #0F172A;
  --simple-card-bg: #1E293B;
  --simple-border: #334155;
  --simple-text: #F8FAFC;
  --simple-muted: #94A3B8;
  --simple-green: #10B981;
  --simple-blue: #3B82F6;
  --simple-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ----------------- Top Admin Bar (Simple) ----------------- */
#royal-admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #0F172A;
  border-bottom: 1px solid var(--simple-border);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-family: var(--simple-font);
  color: var(--simple-text);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.admin-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.admin-crown-badge {
  background: linear-gradient(135deg, #E5A93C, #F59E0B);
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-btn {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid var(--simple-border);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.admin-btn:hover {
  background: #334155;
  border-color: #475569;
}

.admin-btn-gold {
  background: linear-gradient(135deg, #E5A93C, #F59E0B);
  color: #0F172A;
  border: none;
  font-weight: 700;
}

.admin-btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Floating Launch Button */
#admin-floating-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #0F172A;
  color: #F8FAFC;
  border: 2px solid var(--simple-gold);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--simple-font);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}

#admin-floating-pill:hover {
  background: #1E293B;
  transform: scale(1.04);
}

/* ----------------- Clean & Simple Fullscreen Modal ----------------- */
#seo-crm-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  overflow-y: auto;
  padding: 24px;
  font-family: var(--simple-font);
}

#seo-crm-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-crm-container {
  width: 100%;
  max-width: 1300px;
  background: #0F172A;
  border: 1px solid var(--simple-border);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
}

/* Dashboard Top Header */
.simple-crm-header {
  padding: 18px 24px;
  background: #1E293B;
  border-bottom: 1px solid var(--simple-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left h2 {
  font-size: 18px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left p {
  font-size: 12px;
  color: var(--simple-muted);
  margin: 3px 0 0;
}

.simple-close-btn {
  background: #334155;
  color: #CBD5E1;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all 0.2s;
}

.simple-close-btn:hover {
  background: #EF4444;
  color: #FFF;
}

/* Page Selector Navigation Bar */
.page-selector-bar {
  background: #131E35;
  padding: 12px 24px;
  border-bottom: 1px solid var(--simple-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-selector-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--simple-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-tabs-group {
  display: flex;
  gap: 8px;
}

.page-tab-btn {
  background: #1E293B;
  border: 1px solid var(--simple-border);
  color: #CBD5E1;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-tab-btn:hover {
  background: #334155;
  color: #FFF;
}

.page-tab-btn.active {
  background: var(--simple-gold);
  color: #0F172A;
  border-color: var(--simple-gold);
  font-weight: 700;
}

.main-view-switch {
  display: flex;
  background: #0F172A;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--simple-border);
}

.view-switch-btn {
  background: transparent;
  border: none;
  color: var(--simple-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.view-switch-btn.active {
  background: #334155;
  color: #F8FAFC;
}

/* Dashboard Body Area */
.simple-crm-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* 2-Column Split Layout */
.simple-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}

@media (max-width: 950px) {
  .simple-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.simple-card {
  background: #1E293B;
  border: 1px solid var(--simple-border);
  border-radius: 16px;
  padding: 22px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--simple-border);
  padding-bottom: 12px;
}

.card-title-row h3 {
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Fields */
.input-block {
  margin-bottom: 18px;
}

.input-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.input-label {
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
}

.input-help {
  font-size: 11px;
  color: var(--simple-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

.simple-input, .simple-textarea {
  width: 100%;
  background: #0F172A;
  border: 1px solid var(--simple-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #F8FAFC;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.simple-input:focus, .simple-textarea:focus {
  outline: none;
  border-color: var(--simple-gold);
  box-shadow: 0 0 0 2px rgba(229, 169, 60, 0.25);
}

.simple-textarea {
  min-height: 75px;
  resize: vertical;
}

.char-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: #0F172A;
  border: 1px solid var(--simple-border);
  color: var(--simple-muted);
}

.char-badge.ok {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.char-badge.warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

/* ----------------- Clean Google Search Result Mockup ----------------- */
.google-serp-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  color: #4D5156;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

.serp-brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.serp-site-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #D4AF37;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #000;
}

.serp-site-name {
  font-size: 14px;
  color: #202124;
  font-weight: 500;
}

.serp-url-text {
  font-size: 12px;
  color: #4D5156;
}

.serp-clickable-title {
  font-size: 19px;
  line-height: 1.35;
  color: #1A0DAB;
  font-weight: 400;
  margin-bottom: 5px;
  cursor: pointer;
}

.serp-clickable-title:hover {
  text-decoration: underline;
}

.serp-rating-stars {
  font-size: 12px;
  color: #70757A;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars-gold {
  color: #E37400;
  letter-spacing: 1px;
}

.serp-desc-text {
  font-size: 14px;
  line-height: 1.55;
  color: #4D5156;
}

/* Simple SEO Checklist */
.simple-checklist {
  background: #131E35;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--simple-border);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #E2E8F0;
  padding: 6px 0;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.check-icon.pass {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.check-icon.warn {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

/* ----------------- Clean Leads Table ----------------- */
.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.simple-table th {
  background: #131E35;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--simple-muted);
  border-bottom: 1px solid var(--simple-border);
  font-weight: 700;
}

.simple-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #F8FAFC;
}

.simple-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Toast alert */
#admin-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100005;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-toast {
  background: #1E293B;
  border: 1px solid var(--simple-gold);
  color: #F8FAFC;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 13px;
  font-family: var(--simple-font);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Global Color Utilities & Royal Rich Confectionery Footer Fallbacks
   ========================================================================== */
.text-white { color: #FFFFFF !important; }
.text-slate-100 { color: #F1F5F9 !important; }
.text-slate-200 { color: #E2E8F0 !important; }
.text-slate-300 { color: #CBD5E1 !important; }
.text-slate-400 { color: #94A3B8 !important; }

.royal-rich-footer {
  background: linear-gradient(165deg, #2A170E 0%, #1B0E08 50%, #0F0703 100%) !important;
  color: #E5E7EB !important;
  border-top: 2px solid rgba(212, 175, 55, 0.45) !important;
}
.royal-rich-footer a {
  transition: all 0.2s ease;
}
.royal-rich-footer a:hover {
  color: #F59E0B !important;
}
.royal-footer {
  background: linear-gradient(165deg, #2A170E 0%, #1B0E08 50%, #0F0703 100%) !important;
  color: #E5E7EB !important;
  border-top: 2px solid rgba(212, 175, 55, 0.45) !important;
}
.royal-footer-shahi {
  color: #FFFFFF !important;
}


