/* ==========================================================================
   Admin Portal - Clean Modern Light Theme with Dark Navy Sidebar
   Matches requested corporate administration console design
   ========================================================================== */

:root {
  --adm-sidebar-bg: #0b1325;
  --adm-sidebar-hover: #162238;
  --adm-sidebar-active: #1e293b;
  --adm-sidebar-text: #94a3b8;
  --adm-sidebar-text-active: #ffffff;
  --adm-body-bg: #f1f5f9;
  --adm-card-bg: #ffffff;
  --adm-card-border: #e2e8f0;
  --adm-text-main: #0f172a;
  --adm-text-muted: #64748b;
  --adm-primary: #2563eb;
  --adm-danger: #dc2626;
  --adm-success: #16a34a;
  --adm-warning: #d97706;
}

body.admin-body {
  background-color: var(--adm-body-bg) !important;
  color: var(--adm-text-main);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Main Dashboard Wrapper with Sidebar Layout */
.admin-layout-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Sidebar */
.admin-sidebar {
  width: 250px;
  min-width: 250px;
  background-color: var(--adm-sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-brand-container {
  padding: 24px 20px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ef4444, #991b1b);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.sidebar-brand-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.sidebar-brand-title span {
  color: #f87171;
}

.sidebar-sub-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Sidebar Navigation Menu */
.sidebar-menu {
  list-style: none;
  padding: 16px 12px;
  margin: 0;
  flex-grow: 1;
}

.sidebar-menu-item {
  margin-bottom: 4px;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--adm-sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-menu-link i {
  font-size: 18px;
  opacity: 0.85;
}

.sidebar-menu-link:hover {
  background-color: var(--adm-sidebar-hover);
  color: #ffffff;
}

.sidebar-menu-item.active .sidebar-menu-link {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 14px;
}

.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-footer-link:hover {
  color: #ffffff;
}

.sidebar-footer-link.text-danger:hover {
  color: #f87171 !important;
}

/* Right Main Content Area */
.admin-main-content {
  flex-grow: 1;
  padding: 24px 32px;
  overflow-y: auto;
  background-color: var(--adm-body-bg);
}

/* Top Bar */
.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.admin-user-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logged-text {
  font-size: 13px;
  color: #64748b;
}

.admin-logged-text strong {
  color: #0f172a;
}

.btn-top-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-top-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-top-action.btn-logout {
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-top-action.btn-logout:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

/* 4 Metric Cards with Colorful Left Border Accent */
.metric-row {
  margin-bottom: 28px;
}

.icm-stat-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icm-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icm-stat-card.card-blue {
  border-left-color: #2563eb;
}

.icm-stat-card.card-cyan {
  border-left-color: #0891b2;
}

.icm-stat-card.card-red {
  border-left-color: #dc2626;
}

.icm-stat-card.card-green {
  border-left-color: #16a34a;
}

.icm-stat-card.card-gold {
  border-left-color: #d97706;
}

.stat-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.stat-sub.text-success {
  color: #16a34a !important;
  font-weight: 600;
}

.stat-sub.text-danger {
  color: #dc2626 !important;
  font-weight: 600;
}

.stat-sub a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.stat-sub a:hover {
  text-decoration: underline;
}

.stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon-box.bg-blue {
  background: #eff6ff;
  color: #2563eb;
}

.stat-icon-box.bg-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.stat-icon-box.bg-red {
  background: #fef2f2;
  color: #dc2626;
}

.stat-icon-box.bg-green {
  background: #f0fdf4;
  color: #16a34a;
}

.stat-icon-box.bg-gold {
  background: #fffbeb;
  color: #d97706;
}

/* White Content Section Cards */
.icm-section-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 28px;
  overflow: hidden;
}

.icm-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.icm-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.btn-header-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-header-outline:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-header-red {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-header-red:hover {
  background: #b91c1c;
  color: #ffffff;
}

/* Clean White Tables matching the screenshot */
.icm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}

.icm-table thead th {
  background-color: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
  white-space: nowrap;
}

.icm-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.icm-table tbody tr:hover {
  background-color: #f8fafc;
}

.icm-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table element styling */
.case-id-tag {
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
}

.case-id-tag span {
  color: #64748b;
  font-weight: 400;
  font-size: 11px;
  display: block;
}

.victim-cell-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.victim-cell-sub {
  font-size: 11.5px;
  color: #64748b;
}

.scam-cell-highlight {
  font-weight: 700;
  color: #dc2626;
  font-size: 12.5px;
  text-transform: uppercase;
}

/* Badges matching screenshot */
.icm-badge-new {
  background: #f59e0b;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.icm-badge-closed {
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.icm-badge-available {
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
}

.icm-badge-tracing {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.icm-badge-freeze {
  background: #9333ea;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Action button in table */
.btn-icm-details {
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-icm-details:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-icm-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 4px;
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-icm-icon:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-icm-icon.edit-icon {
  background: #38bdf8;
  color: #ffffff;
  border-color: #38bdf8;
}

.btn-icm-icon.edit-icon:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Bottom Footer */
.admin-footer-text {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 24px 0 12px;
}

/* Modals */
.modal-admin-clean .modal-content {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-admin-clean .modal-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 22px;
  background: #f8fafc;
  border-radius: 10px 10px 0 0;
}

.modal-admin-clean .modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 14px 22px;
  background: #f8fafc;
  border-radius: 0 0 10px 10px;
}

/* Responsive adjustment for Mobile */
@media (max-width: 991px) {
  .admin-layout-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
  }
  .admin-main-content {
    padding: 16px;
  }
}

/* Modern Admin Table Pagination Styling */
.icm-table-pagination-bar {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-sm .page-link {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-color: #cbd5e1;
  background-color: #ffffff;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pagination-sm .page-link:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.pagination-sm .page-item.active .page-link {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.pagination-sm .page-item.disabled .page-link {
  color: #94a3b8;
  background-color: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.filter-tab-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tab-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.filter-tab-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

