/* File: assets/css/admin.css */

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

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: var(--surface-color);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
  font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

/* Main Content */
.admin-main {
  flex-grow: 1;
  background-color: var(--bg-color);
  padding: 2rem;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* Dashboard Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.stat-title {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Table */
.table-container {
  background-color: var(--surface-color);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: rgba(0,0,0,0.02);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.dark th {
  background-color: rgba(255,255,255,0.02);
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background-color: rgba(16, 185, 129, 0.1); color: #10B981; }
.badge-warning { background-color: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.badge-danger { background-color: rgba(239, 68, 68, 0.1); color: #EF4444; }

/* Login Container */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
}

.login-card {
  background-color: var(--surface-color);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}
