/**
 * EM Visa Global - Administration Portal Styles
 */

body.admin-body {
  background-color: #f1f5f9;
  color: #0f172a;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: #0a2540;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

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

.admin-brand {
  text-decoration: none;
  color: #ffffff;
}

.admin-brand .brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: block;
}

.badge-role {
  font-size: 0.65rem;
  color: #00a699;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.admin-menu {
  flex-grow: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.menu-group-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
  padding: 12px 12px 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.menu-item.active {
  background-color: #0070f3;
  color: #ffffff;
}

.badge-unread {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #06182c;
}

.sidebar-link-btn {
  display: block;
  font-size: 0.8rem;
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.sidebar-link-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.logout-btn {
  width: 100%;
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* Main Area */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-topbar-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-user-info {
  font-size: 0.875rem;
  color: #64748b;
}

.admin-content-inner {
  padding: 32px;
  flex-grow: 1;
}

/* Stats Overview */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.stat-card {
  background-color: #ffffff;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-card.border-danger {
  border-color: #ef4444;
  background-color: #fff1f2;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

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

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-accent { background: #e0f2fe; color: #0369a1; }

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.media-card {
  display: flex;
  flex-direction: column;
}

.media-preview-box {
  height: 150px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.media-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-filename {
  font-weight: 600;
  font-size: 0.8rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-size {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Settings Form Group Titles */
.settings-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a2540;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
