:root {
  --primary: #0D6EFD;
  --accent: #FF6B35;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #dee2e6;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

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

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
svg {width:22px;height: 22px;}
a {text-decoration: none;color: var(--accent);}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 1rem;
}

/* Splash Screen */
.splash-screen {
  position: fixed; inset: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
.splash-content { text-align: center; }
.splash-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 1rem; }
.splash-text { color: white; font-size: 0.9rem; opacity: 0.9; }
.splash-loader {
  width: 40px; height: 40px; margin: 1rem auto;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { height: 60px;object-fit: contain;padding: 5px;margin-bottom: -8px; }
.nav-menu {
  display: none; position: absolute;
  top: 60px; left: 0; right: 0;
  background: white; flex-direction: column;
  padding: 1rem; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: calc(100vh - 60px);
}
.nav-menu.active { display: flex; }
.nav-menu a { 
  padding: 0.75rem 0; text-decoration: none; color: var(--text); 
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--primary); }
.nav-toggle {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { 
  width: 24px; height: 2px; background: var(--text); 
  transition: all 0.3s;
}

.btn-login { 
  background: var(--primary); color: white !important; 
  padding: 0.7rem 1rem !important; border-radius: 6px;
}

.mob-dash-menu {display:block;}

/* Hero Banner */
.hero-banner {
  /* Combines a 15% opacity white overlay with your image */
  background: linear-gradient(#333c), url("../img/banner.gif");
  background-blend-mode: normal;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white; 
  text-align: center;
  padding: 3rem 1rem;
  min-height: calc(100vh - 60px);
}

.hero-banner h1 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 700; }
.hero-tagline { font-size: 1.125rem; opacity: 0.95; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  border-radius: var(--radius); text-decoration: none;
  font-weight: 600; transition: all 0.2s ease;
  border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: none; color: var(--primary);border: 1px solid var(--primary)!important; }
.btn-secondary { background: none; color: var(--accent); border: 1px solid var(--accent)!important; }
.btn-success { background: #198754; color: white; }
.btn-danger { background: #dc3545; color: white;border: #dc3545; }
.btn-sm { padding: 0.2rem 0.4rem; font-size: 0.875rem;border:none;border-radius:5px; }

/* Page Content */
.page-content { min-height: 60vh; }
section.container { padding: 3rem 1rem; }
section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }

.hero { background: #0D6EFD05; }
.hero .grid { gap: 5rem; }
.hero .grid h1 { align-content: center; }
.hero .grid.le h1,.hero .grid.lr p { text-align: left; }
.hero .grid.lr h1,.hero .grid.le p { text-align: right;}

.hero .grid h1,.hero .grid p { opacity: 0; }
.hero .grid.lr h1.i-v,.hero .grid.le p.i-v { animation: slideInLeft .8s ease forwards; }
.hero .grid.le h1.i-v,.hero .grid.lr p.i-v { animation: slideInRight .8s ease forwards;}
@keyframes slideInLeft {from{opacity: 0;transform: translateX(-50px);}to{opacity: 1;transform: translateX(0);}}
@keyframes slideInRight{from{opacity: 0;transform: translateX(50px);}to{opacity: 1;transform: translateX(0);} }

/* Grid & Cards */
.grid { 
  display: grid; gap: 1.5rem; 
  grid-template-columns: 1fr; 
}
.card {
  background: white; padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; }
.card h3 { margin: 0.5rem 0; font-size: 1.25rem; }
.card p { color: var(--text-muted); margin-bottom: 1rem; }

/* Loader */
.loader {
  text-align: center; padding: 3rem; color: var(--text-muted);
}
.loader:after {
  content: ''; display: inline-block; width: 30px; height: 30px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.6s linear infinite; margin-left: 1rem;
}

/* Toast */
.toast {
  position: fixed; top: 80px; right: 1rem; z-index: 10000;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
  max-width: 400px;
}
@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.toast-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }

/* Auth */
.auth-container { 
  min-height: 80vh; display: flex; 
  align-items: center; justify-content: center; padding: 2rem 1rem;
}
.auth-box { 
  width: 100%; max-width: 400px; background: white;
  padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.tabs { display: flex; margin-bottom: 1.5rem; gap: 0.5rem; }
.tab { 
  flex: 1; padding: 0.75rem; background: var(--bg-light); 
  border: none; cursor: pointer; border-radius: 6px; font-weight: 600;
}
.tab.active { background: var(--primary); color: white; }
.auth-form input { 
  width: 100%; padding: 0.75rem; margin-bottom: 1rem;
  border: 1px solid var(--border); border-radius: 6px; font-size: 1rem;
}
.auth-form input:focus { outline: none; border-color: var(--primary); }
.note { font-size: 0.875rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }

/* Dashboard */
.dashboard { display: flex; min-height: calc(100vh - 60px); }
.sidebar { 
  width: 240px; background: var(--bg-light); padding: 1.5rem 1rem;
  border-right: 1px solid var(--border); display: none;
}
.dash-content { flex: 1; padding: 1.5rem;width:calc(100% - 240px); }
.dash-nav a { 
  display: block; padding: 0.75rem 1rem; text-decoration: none;
  color: var(--text); border-radius: 6px; margin-bottom: 0.25rem;
  transition: all 0.2s;
}
.dash-nav a.active { background: var(--primary)!important; color: white; }
.dash-nav a:hover { background: var(--accent);   color: white; }
.role-badge { 
  background: var(--accent); color: white; 
  padding: 0.25rem 0.75rem; border-radius: 4px; 
  font-size: 0.75rem; display: inline-block; margin-bottom: 1rem;
  text-transform: capitalize; font-weight: 600;
}
.role-super-admin { background: #dc3545; }
.role-sub-admin { background: #fd7e14; }
.role-team { background: #0d6efd;color: #fff; }
.role-client { background: #6c757d; }

.stats { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; }
.stat-card { 
  background: white; padding: .75rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stat-num { font-size: 2rem; font-weight: 700; color: var(--primary); display: block; }

/* Tables */
.table-responsive { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-light); font-weight: 600; }
tr:hover { background: var(--bg-light); }

/* Badges */
.badge { 
  padding: 0.25rem 0.75rem; border-radius: 4px; 
  font-size: 0.8rem; font-weight: 600; display: inline-block;
}
.badge-active, .badge-approved { background: #198754; color: white; }
.badge-inactive, .badge-pending { background: #ffc107; color: black; }
.badge-suspended, .badge-rejected { background: #dc3545; color: white; }

/* Modal */
.modal { 
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  padding: 1rem;
}
.modal-content { 
  background: white; padding: 2rem; border-radius: var(--radius);
  width: 100%; max-width: 500px; max-height: 90vh;overflow-y: auto;
}
.modal-actions { display: flex; gap: 1rem; justify-content: flex-end;padding:1rem 0;margin:0 0 -1rem; }
.tab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }

/* Forms */
label { display: block; margin-bottom: 0.25rem; font-weight: 600; font-size: 0.875rem; }
input, textarea, select { 
  width: 100%; padding: 0.5rem; margin-bottom: 1rem;
  border: 1px solid var(--border); border-radius: 6px; 
  font-family: inherit; font-size: 1rem;
}
.status-select{margin-bottom:0;}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 100px; }
.help-text { display: block; color: var(--text-muted); font-size: 0.75rem; margin-top: -0.5rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1.5rem; }

/* Images & Avatars */
.thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.thumb-sm { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.thumb-placeholder {
  width: 50px; height: 50px; background: var(--bg-light);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; color: var(--text-muted); font-size: 1.5rem;
}
.avatar-thumb {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.avatar-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; text-transform: uppercase;
}
.avatar-preview-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.upload-preview { margin: 0.5rem 0 1rem; }
.upload-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }

/* Reviews */
.client-card {
  background: white; padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 1rem;
}.client-card.unread {background:var(--bg-light);}
.client-header {
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem;
}
.client-tab { overflow: auto;max-height: 50vh; }
.client-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.stars { color: #ffc107; font-size: 1.25rem; }

/* Orders */
.order-product { display: flex; align-items: center; gap: 0.5rem; }
.order-item { display: flex; justify-content: space-between; padding: 0.75rem; border-bottom: 1px solid var(--border); }
.order-summary { 
  background: var(--bg-light); padding: 1rem; border-radius: 6px; 
  margin: 1rem 0; text-align: right; font-weight: 600;
}
.order-detail p { margin: 0.5rem 0; }

/* Utils */
.text-muted { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.uploading { color: var(--primary); font-style: italic; }
.error { color: #dc3545; }
.error-box { background: #f8d7da; color: #842029; padding: 1rem; border-radius: 6px; }
.quick-actions { margin-top: 2rem; }
.quick-actions .btn { margin-right: 1rem; margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--bg-light); padding: 2rem 1rem;
  text-align: center; /*margin-top: 3rem;*/
  font-size: 0.875rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.social-links { margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; }
.social-links a { color: var(--text-muted); text-decoration: none; text-transform: capitalize; }
.social-links a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  body {zoom: .8;}
  
  .hero .grid h1 { font-size: 2rem; }
  .hero .grid p { font-size: 1rem; }
  
  .hero .grid { gap: 1rem; }
  .hero .grid h1 { grid-row: 1; }
  .hero .grid.le h1,.hero .grid.lr p { text-align: unset; }
  .hero .grid.lr h1,.hero .grid.le p  { text-align: unset; }
}

@media (min-width: 768px) {
  body {zoom: .9;}
  .nav-menu {
    display: flex !important; position: static;
    flex-direction: row; gap: 2rem;
    padding: 0; border: none; box-shadow: none;
  }.mob-dash-menu {display:none;}
  .nav-toggle { display: none; }
  .hero-banner { padding: 12rem 1rem; }
  .hero-banner h1 { font-size: 3rem; }
  .sidebar { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero .grid h1 { font-size: 2rem; }
  .hero .grid p { font-size: 1rem; }
}

@media (min-width: 1024px) {
  body {zoom: 1;}
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero .grid { grid-template-columns: repeat(2, 1fr); }
  .hero .grid h1 { font-size: 3rem; }
  .hero .grid p { font-size: 1.5rem; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}