/* ==========================================================================
   SMK TERATAI PUTIH GLOBAL 3 BEKASI - CMS ADMIN DASHBOARD STYLESHEET
   ========================================================================== */

:root {
  --admin-navy: #0F2C59;
  --admin-dark-navy: #0A192F;
  --admin-teal: #5C938E;
  --admin-accent-gold: #F59E0B;
  --admin-bg: #F8FAFC;
  --admin-card-bg: #FFFFFF;
  --admin-border: #E2E8F0;
  --admin-text-main: #1E293B;
  --admin-text-muted: #64748B;
  --admin-radius: 12px;
  --admin-sidebar-width: 260px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* LAYOUT */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--admin-sidebar-width);
  background-color: var(--admin-dark-navy);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  font-size: 1.8rem;
  color: var(--admin-accent-gold);
  background: rgba(245, 158, 11, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

img.brand-icon {
  background: transparent;
}

.brand-text h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.brand-text span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-menu {
  padding: 1.5rem 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

.menu-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  transition: all 0.2s;
}

.menu-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.menu-item:hover, .menu-item.active {
  background: rgba(92, 147, 142, 0.25);
  color: #FFFFFF;
  border-left: 4px solid var(--admin-teal);
}

.menu-item.text-danger {
  color: #F87171;
}

.menu-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* CONTENT AREA */
.admin-content {
  margin-left: var(--admin-sidebar-width);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 70px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--admin-navy);
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--admin-navy);
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}

.user-role {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.admin-main {
  padding: 2rem;
  flex-grow: 1;
}

/* CARDS & TABLES */
.card {
  background: #FFFFFF;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFA;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-body.p-0 {
  padding: 0;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: #FFFFFF;
  padding: 1.5rem;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.bg-blue { background: rgba(66, 133, 244, 0.12); color: #4285F4; }
.stat-icon.bg-green { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.stat-icon.bg-amber { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.stat-icon.bg-purple { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }

.stat-label {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  font-weight: 600;
  display: block;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--admin-navy);
  margin: 0.2rem 0;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* FORMS */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--admin-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--admin-teal);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  margin-top: 0.35rem;
  display: block;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: var(--admin-navy); color: #FFFFFF; }
.btn-primary:hover { background: #1A365D; }
.btn-success { background: #10B981; color: #FFFFFF; }
.btn-success:hover { background: #059669; }

.btn-outline-primary { border: 1.5px solid var(--admin-navy); color: var(--admin-navy); background: transparent; }
.btn-outline-primary:hover { background: var(--admin-navy); color: #FFFFFF; }

.btn-outline-secondary { border: 1.5px solid var(--admin-border); color: var(--admin-text-main); background: transparent; }
.btn-outline-secondary:hover { background: #F1F5F9; }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 0.35rem; }

.w-100 { width: 100%; }

/* TABLE */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #F8FAFC;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #F8FAFC;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-primary { background: rgba(15, 44, 89, 0.1); color: var(--admin-navy); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge-major { background: rgba(92, 147, 142, 0.15); color: #2D5A56; }

/* BROSUR PREVIEW BOX */
.brosur-preview-box, .brosur-preview-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px dashed var(--admin-border);
}

.pdf-icon-large, .pdf-badge {
  font-size: 2.5rem;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-table td {
  padding: 0.35rem 0.5rem 0.35rem 0;
  font-size: 0.88rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  transition: all 0.2s;
}

.quick-link-item:hover {
  border-color: var(--admin-teal);
  background: #F0FDF4;
  transform: translateY(-2px);
}

.ql-icon {
  font-size: 1.4rem;
  color: var(--admin-navy);
}

.ql-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--admin-navy);
}

.ql-text span {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.alert-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-gold { color: var(--admin-accent-gold); }
.text-red { color: #EF4444; }
.text-success { color: #10B981; }
.text-muted { color: var(--admin-text-muted); }
