/* Gharsat Noor Admin — extracted from dashboard template + Laravel tweaks */

.mobile-blocker { display: none; position: fixed; inset: 0; z-index: 999999; background: #ffffff; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }
.mb-icon-box { width: 80px; height: 80px; background: var(--slate-50); border-radius: 20px; display: grid; place-items: center; margin-bottom: 24px; box-shadow: var(--shadow-sm); animation: float 3s ease-in-out infinite; }
.mb-icon-box svg { width: 40px; height: 40px; stroke: var(--primary); stroke-width: 1.5; }
.mb-title { font-size: 20px; font-weight: 800; color: var(--slate-800); margin-bottom: 12px; }
.mb-desc { font-size: 15px; color: var(--slate-600); line-height: 1.6; max-width: 300px; margin: 0 auto; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1024px) { .mobile-blocker { display: flex; } .sidebar, .main, .modal-overlay { display: none !important; } body.admin-app { overflow: hidden; background: #fff; } }

:root {
  --primary: #00bdae;
  --primary-dark: #00968a;
  --secondary: #7338a2;
  --accent: #f94f51;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --sidebar-w: 280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; font-family: 'Cairo', sans-serif; }

body.admin-app { background: var(--slate-50); color: var(--slate-800); display: flex; height: 100vh; overflow: hidden; }
body.auth-page { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }

svg { width: 20px; height: 20px; stroke-width: 1.8; }

.sidebar { width: var(--sidebar-w); background: var(--white); border-left: 1px solid var(--border); display: flex; flex-direction: column; padding: 24px; z-index: 50; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.brand-icon { width: 44px; height: 44px; background: #0f172a; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,189,174,0.2); overflow: hidden; }
.brand-icon-logo {
  background-image: url('/images/login-logo.png');
  background-size: cover;
  background-position: center;
}
.brand-text h2 { font-size: 18px; font-weight: 800; color: var(--slate-800); margin: 0; }
.brand-text p { font-size: 12px; color: var(--slate-400); margin: 0; }

.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); color: var(--slate-600); font-weight: 600; transition: all .2s ease; font-size: 15px; text-decoration: none; }
.nav-item svg { stroke: currentColor; transition: .2s; flex-shrink: 0; }
.nav-item:hover { background: #f1f5f9; color: var(--slate-800); }
.nav-item.active { background: rgba(0,189,174,0.08); color: var(--primary-dark); font-weight: 700; }
.nav-item.active svg { stroke: var(--primary); }

.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.user-pill { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.user-avatar { width: 36px; height: 36px; border-radius: 10px; background: #0f172a; display: grid; place-items: center; overflow: hidden; box-shadow: 0 4px 10px rgba(15,23,42,0.2); }
.user-avatar-logo {
  background-image: url('/images/login-logo.png');
  background-size: cover;
  background-position: center;
}
.user-meta small { display: block; color: var(--slate-400); font-size: 11px; }
.user-meta span { font-size: 13px; font-weight: 700; color: var(--slate-800); }
.logout-btn { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: #ef4444; font-weight: 700; cursor: pointer; font-size: 14px; }
.logout-btn:hover { background: #fef2f2; border-color: #fecaca; }

.main { flex: 1; padding: 40px; overflow-y: auto; position: relative; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.page-title h1 { font-size: 26px; font-weight: 800; color: var(--slate-800); }
.page-title p { color: var(--slate-600); font-size: 15px; margin-top: 4px; }

.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.card-label { font-size: 14px; font-weight: 600; color: var(--slate-600); }
.card-value { font-size: 32px; font-weight: 800; color: var(--slate-800); margin-top: 8px; }

.table-wrapper { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th { text-align: right; padding: 16px 24px; background: #f8fafc; color: var(--slate-600); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--border); }
td { padding: 18px 24px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--slate-800); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fbfcfd; }

.badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }

.btn { padding: 12px 20px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 4px 12px rgba(0,189,174,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,189,174,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--slate-600); }
.btn-outline:hover { border-color: var(--slate-600); color: var(--slate-800); }

.placeholder-card { text-align: center; padding: 56px 24px; }
.placeholder-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 18px; background: rgba(0,189,174,0.1); color: var(--primary-dark); display: grid; place-items: center; }
.placeholder-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.placeholder-card p { color: var(--slate-600); font-size: 15px; line-height: 1.7; max-width: 480px; margin: 0 auto 20px; }

.alert-error { background: #fef2f2; color: #dc2626; padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 16px; text-align: right; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--slate-800); }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 14px; transition: .2s; background: #fff; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,189,174,0.1); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: left 1rem center; background-size: 1em; }
.badge-disabled { background: #f1f5f9; color: #64748b; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-danger-light { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-danger-light:hover { background: #fee2e2; }

/* Login */
.login-wrap { width: 100%; max-width: 420px; padding: 20px; }
.login-box { background: #fff; padding: 48px; border-radius: 24px; box-shadow: 0 25px 80px rgba(0,0,0,0.4); text-align: center; animation: loginPop 0.5s ease-out; }
@keyframes loginPop { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.login-logo { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 20px; display: grid; place-items: center; margin: 0 auto 24px; font-size: 32px; font-weight: 800; color: #fff; box-shadow: 0 10px 30px rgba(0,189,174,0.3); }
.login-logo-image {
  width: 88px;
  height: 88px;
  background: #0f172a;
  border-radius: 20px;
  padding: 3px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.22);
  overflow: hidden;
}
.login-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.login-title { font-size: 24px; font-weight: 800; color: var(--slate-800); margin-bottom: 8px; }
.login-subtitle { font-size: 14px; color: var(--slate-600); margin-bottom: 32px; }
.login-input { width: 100%; padding: 14px 18px; border: 2px solid var(--border); border-radius: 12px; font-size: 15px; font-family: inherit; margin-bottom: 16px; transition: all 0.2s; text-align: right; }
.login-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,189,174,0.1); }
.login-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,189,174,0.3); }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,189,174,0.4); }
.login-remember { display: flex; align-items: center; gap: 8px; justify-content: flex-start; margin-bottom: 20px; font-size: 13px; color: var(--slate-600); font-weight: 600; }
.login-remember input { accent-color: var(--primary); width: 16px; height: 16px; }

@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-content { animation: fadeSlide 0.4s ease-out; }
