/* ==================== ADMIN PANEL - PREMIUM UI ==================== */
.page-admin {
  --admin-header-height: 88px;
  --admin-sidebar-width: 280px;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --hover-bg: rgba(255, 255, 255, 0.1);
  --accent-glow: rgba(253, 250, 1, 0.15);
  background: #0a0a0f;
  color: var(--text-primary);
  min-height: 100vh;
}

.page-admin main {
  padding: 0;
}

.page-admin .admin-page {
  max-width: none;
  margin: 0;
  width: 100%;
}

/* ==================== HEADER ==================== */
.simple-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 14, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.simple-header .logo {
  height: 56px;
}

/* ==================== LAYOUT ==================== */
.admin-layout {
  display: block;
  min-height: calc(100vh - var(--admin-header-height));
}

/* ==================== SIDEBAR ==================== */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  position: fixed;
  top: var(--admin-header-height);
  left: 0;
  bottom: 0;
  padding: 24px 16px;
  background: linear-gradient(180deg, rgba(15, 15, 25, 0.98) 0%, rgba(10, 10, 18, 0.98) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.admin-brand {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #ffffff, rgba(253, 250, 1, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav a {
  padding: 11px 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
}

.admin-nav a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.admin-nav a:hover::before {
  background: var(--accent, #fdfa01);
  box-shadow: 0 0 6px var(--accent-glow);
}

.admin-nav a.is-active {
  background: var(--accent-glow);
  color: var(--text-primary);
  font-weight: 600;
}

.admin-nav a.is-active::before {
  width: 6px;
  height: 6px;
  background: var(--accent, #fdfa01);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ==================== MAIN CONTENT ==================== */
.admin-content {
  margin-left: var(--admin-sidebar-width);
  padding: 28px 32px 60px;
  display: grid;
  gap: 24px;
}

/* ==================== CARDS ==================== */
.admin-panel-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 18px;
  animation: cardFadeIn 0.4s ease both;
  transition: border-color 0.3s ease;
}

.admin-panel-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-panel-card h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
  padding-left: 14px;
}

.admin-panel-card h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: var(--accent, #fdfa01);
}

.admin-panel-card .form-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -8px 0 4px;
}

/* ==================== TOOLBAR ==================== */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
}

.admin-toolbar label {
  flex: 1;
  min-width: 140px;
}

/* ==================== ACTIONS / LISTS ==================== */
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-subsection {
  display: grid;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: none;
}

/* ==================== EVENT GRID ==================== */
.admin-eventos-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.admin-eventos-grid .evento-card {
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-eventos-grid .evento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.admin-eventos-grid .evento-media {
  border-radius: 12px;
  max-height: 220px;
  object-fit: cover;
}

/* ==================== CARRERAS GRID ==================== */
.admin-carreras-grid {
  display: grid;
  gap: 12px;
}

.carrera-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}

.carrera-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.carrera-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==================== TAGS ==================== */
.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent, #fdfa01);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==================== PLACEHOLDER ==================== */
.admin-placeholder {
  min-height: 120px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 auto;
}

.talles-category-title-input {
  background: rgba(0, 0, 0, 0.2) !important;
  color: var(--accent, #fdfa01) !important;
  border: 1px dashed rgba(255,255,255,0.3) !important;
}
.talles-category-title-input:focus {
  border-color: var(--accent, #fdfa01) !important;
}

/* ==================== SOPORTE ==================== */
.admin-support {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 480px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}

.admin-support-tickets {
  border-right: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.admin-support-tickets h4 {
  padding: 14px 16px;
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
}

.support-ticket-list {
  overflow-y: auto;
  flex: 1;
  max-height: 420px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.support-ticket-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  transition: background 0.15s ease;
}

.support-ticket-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.support-ticket-card.is-active {
  background: var(--accent-glow);
  border-left: 3px solid var(--accent, #fdfa01);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ticket-card-header strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-card-preview {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-card-time {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Badges */
.support-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-open {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.badge-closed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Chat Panel */
.admin-support-chat {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
}

.admin-support-chat .support-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.15);
}

.admin-support-chat .support-chat-header strong {
  font-size: 14px;
}

.admin-support-chat .support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.support-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.08);
  align-self: flex-start;
}

.support-bubble.is-admin {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, rgba(253, 250, 1, 0.12), rgba(253, 250, 1, 0.06));
  border: 1px solid rgba(253, 250, 1, 0.15);
}

.bubble-content {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.admin-support-chat .support-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.1);
}

.admin-support-chat .support-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
}

.admin-support-chat .support-input input:focus {
  outline: none;
  border-color: var(--accent, #fdfa01);
}

.admin-support-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ==================== PAGOS ==================== */
.pagos-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.pagos-stat-card {
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pagos-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.pagos-stat-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 600;
}

.pagos-stat-value {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--text-primary);
  width: fit-content;
}

.pagos-table {
  display: grid;
  gap: 4px;
}

.pagos-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr 1.4fr 0.9fr 0.9fr 0.9fr 0.9fr 0.9fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.pagos-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pagos-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagos-head {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==================== COMISIONES TABLE ==================== */
.comisiones-table {
  display: grid;
  gap: 2px;
}

.comisiones-row {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.comisiones-row:hover:not(.comisiones-head) {
  background: rgba(255, 255, 255, 0.04);
}

.comisiones-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comisiones-head {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
}

/* ==================== TEMA CLARO ==================== */
body.theme-light.page-admin {
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --hover-bg: rgba(0, 0, 0, 0.04);
  --accent-glow: rgba(180, 130, 20, 0.1);
  background: #f3f4f6;
  color: var(--text-primary);
}

body.theme-light.page-admin .simple-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

body.theme-light.page-admin .theme-icon {
  color: var(--text-primary);
}

body.theme-light.page-admin .admin-sidebar {
  background: linear-gradient(180deg, #fbfaf8 0%, #f8f6f1 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-light.page-admin .admin-brand h1 {
  background: linear-gradient(135deg, #1f1a10, #8b6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-light.page-admin .admin-nav a {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  box-shadow: none;
}

body.theme-light.page-admin .admin-nav a::before {
  background: var(--text-secondary);
}

body.theme-light.page-admin .admin-nav a:hover,
body.theme-light.page-admin .admin-nav a:focus-visible {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

body.theme-light.page-admin .admin-nav a.is-active {
  background: rgba(180, 130, 20, 0.08);
  color: #7c5c10;
  font-weight: 600;
}

body.theme-light.page-admin .admin-nav a.is-active::before {
  background: #b38b34;
}

body.theme-light.page-admin .admin-panel-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

body.theme-light.page-admin .admin-panel-card h2::before {
  background: #b38b34;
}

body.theme-light.page-admin .btn.ghost {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

body.theme-light.page-admin .btn.btn-outline {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

body.theme-light.page-admin .admin-support-chat,
body.theme-light.page-admin .admin-support-tickets,
body.theme-light.page-admin .carrera-card,
body.theme-light.page-admin .cuenta-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

body.theme-light.page-admin .support-ticket-card {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

body.theme-light.page-admin .support-ticket-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.theme-light.page-admin .support-ticket-card.is-active {
  background: rgba(180, 130, 20, 0.08);
  border-left-color: #b38b34;
}

body.theme-light.page-admin .support-bubble {
  background: #f3f4f6;
  color: var(--text-primary);
}

body.theme-light.page-admin .support-bubble.is-admin {
  background: linear-gradient(135deg, rgba(180, 130, 20, 0.1), rgba(180, 130, 20, 0.04));
  border-color: rgba(180, 130, 20, 0.15);
}

body.theme-light.page-admin .admin-support-chat .support-input input {
  background: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

body.theme-light.page-admin .admin-support-chat .support-chat-header,
body.theme-light.page-admin .admin-support-chat .support-input {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light.page-admin .admin-placeholder {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

body.theme-light.page-admin .pagos-stat-card {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light.page-admin .pagos-head,
body.theme-light.page-admin .comisiones-head {
  background: rgba(0, 0, 0, 0.03);
}

body.theme-light.page-admin .pagos-row {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 8, 14, 0.98);
  }

  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .admin-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .admin-nav a::before {
    display: none;
  }

  .admin-content {
    margin-left: 0;
    padding: 20px 16px 60px;
  }

  .admin-support {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    flex-direction: column;
  }

  .admin-toolbar label {
    min-width: 100%;
  }

  .comisiones-row {
    grid-template-columns: 1.5fr 0.6fr 0.8fr 0.8fr 0.8fr 0.8fr;
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ==================== TABLA TALLES SPREADSHEET ==================== */
.tabla-talles-admin {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
}
.tabla-talles-admin table {
  width: 100%;
  border-collapse: collapse;
}
.tabla-talles-admin th {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tabla-talles-admin th:first-child { text-align: left; }
.tabla-talles-admin td {
  padding: 8px 4px;
}
.tabla-talles-input {
  width: 100%;
  min-width: 45px;
  max-width: 80px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 6px;
  color: var(--text-primary);
  font-size: 13px;
  text-align: center;
}
.tabla-talles-input.medida {
  min-width: 100px;
  max-width: none;
  text-align: left;
}
.tabla-talles-input:focus {
  outline: none;
  border-color: var(--accent, #fdfa01);
}
.btn-remove-row {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.btn-remove-row:hover {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}
body.theme-light.page-admin .tabla-talles-admin {
  background: #f9f9f9;
  border-color: rgba(0,0,0,0.1);
}
body.theme-light.page-admin .tabla-talles-input {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  color: var(--text-primary);
}
body.theme-light.page-admin .tabla-talles-admin th {
  border-bottom-color: rgba(0,0,0,0.1);
}

/* ==================== DASHBOARD VIEW ==================== */
.admin-dashboard-view {
  min-height: calc(100vh - var(--admin-header-height));
  padding: 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 40px;
}

.dashboard-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, rgba(253, 250, 1, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.dashboard-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px; /* space for scrollbar */
  scrollbar-width: thin;
}

.dashboard-grid::-webkit-scrollbar {
  height: 8px;
}
.dashboard-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}
.dashboard-grid::-webkit-scrollbar-thumb {
  background: var(--accent, #fdfa01);
  border-radius: 4px;
}

.dashboard-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 280px;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(253, 250, 1, 0.4);
}

.dashboard-card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.dashboard-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
  transition: background 0.3s ease;
}

.dashboard-card:hover .dashboard-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.dashboard-card-content {
  position: relative;
  z-index: 3;
  padding: 24px;
}

.dashboard-card-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.dashboard-card-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-card.create-new {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dashboard-card.create-new:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent, #fdfa01);
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.dashboard-card.create-new:hover .dashboard-card-icon {
  background: var(--accent, #fdfa01);
  color: #000;
  transform: scale(1.1);
}

/* Light Theme Additions */
body.theme-light.page-admin .dashboard-header h1 {
  background: linear-gradient(135deg, #1f1a10, #8b6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-light.page-admin .dashboard-card.create-new {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
}

body.theme-light.page-admin .dashboard-card.create-new:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #b38b34;
}

body.theme-light.page-admin .dashboard-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #b38b34;
}

body.theme-light.page-admin .dashboard-card-icon {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

body.theme-light.page-admin .dashboard-card.create-new:hover .dashboard-card-icon {
  background: #b38b34;
  color: #fff;
}