/* Admin Specific Styling */

:root {
  --admin-sidebar-w: 260px;
  --bg-sidebar: #0f0f0f;
  --bg-content: #121212;
  --color-accent: #d4af37;
  --badge-pending: rgba(241, 196, 15, 0.15);
  --badge-pending-text: #f1c40f;
  --badge-approved: rgba(46, 204, 113, 0.15);
  --badge-approved-text: #2ecc71;
  --badge-rejected: rgba(231, 76, 60, 0.15);
  --badge-rejected-text: #e74c3c;
}

body.admin-body {
  background-color: var(--bg-content);
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

/* Sidebar */
.sidebar {
  width: var(--admin-sidebar-w);
  background-color: var(--bg-sidebar);
  border-right: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  padding: 24px 0;
}

.sidebar-logo {
  padding: 0 24px 30px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 20px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #b0b0b0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.sidebar-link:hover, .sidebar-link.active {
  background-color: rgba(212, 175, 55, 0.08);
  color: var(--color-accent);
}

.sidebar-link.active {
  font-weight: 600;
  border-left: 3px solid var(--color-accent);
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px 24px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Main Content Area */
.admin-main {
  margin-left: var(--admin-sidebar-w);
  flex-grow: 1;
  padding: 40px;
  min-height: 100vh;
  overflow-x: hidden;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 20px;
}

.admin-title h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.admin-title p {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Dashboard Widgets */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.widget-card {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-info h3 {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 4px;
  line-height: 1;
}

.widget-info p {
  color: #b0b0b0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.widget-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* Data Tables */
.table-container {
  background: rgba(25, 25, 25, 0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.table-header-bar {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.table-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.table-filters {
  display: flex;
  gap: 12px;
}

.filter-select {
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

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

.admin-table th {
  background-color: rgba(0,0,0,0.15);
  padding: 16px 24px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.95rem;
  color: #dfdfdf;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Status Badges */
.badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-pending {
  background-color: var(--badge-pending);
  color: var(--badge-pending-text);
}

.badge-approved {
  background-color: var(--badge-approved);
  color: var(--badge-approved-text);
}

.badge-rejected {
  background-color: var(--badge-rejected);
  color: var(--badge-rejected-text);
}

/* Buttons */
.btn-icon {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: rgba(255,255,255,0.05);
  color: #fff;
}

.btn-icon.delete:hover {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--badge-rejected-text);
}

.btn-icon.view:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-accent);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #1a1a1a;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease-out forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Detail view content styling */
.detail-row {
  display: flex;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  padding-bottom: 12px;
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-label {
  width: 160px;
  font-weight: 600;
  color: #888;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.detail-val {
  color: #fff;
  font-size: 0.95rem;
}

/* Mobile Sidebar Toggle styling */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
    padding: 20px;
  }
}

/* Login Page Styling */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, rgba(18, 18, 18, 1) 70%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(25, 25, 25, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
