/* Admin backend stilark */

.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6ba6a3 0%, #c44569 100%);
  padding: 20px;
}
.login-card {
  background: white; padding: 48px 40px;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.20);
  width: 100%; max-width: 400px;
}
.login-card h1 { font-family: 'Cormorant Garamond', serif; margin: 0; font-size: 2.4rem; }
.login-card .muted { margin-bottom: 28px; }
.login-card label { margin-bottom: 18px; }
.login-card button { width: 100%; margin-top: 12px; }
.error {
  background: #fde8e8; color: #c14444; padding: 12px;
  border-radius: 6px; font-size: .9rem; margin-bottom: 12px;
}

.admin-body { background: #f5f3ef; margin: 0; }
.admin-header {
  background: white; border-bottom: 1px solid #e7e0d3;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.admin-nav {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 32px;
}
.admin-nav .brand {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  color: #2d2a26; font-weight: 600;
}
.admin-nav nav {
  display: flex; gap: 24px; flex: 1; font-size: .92rem;
}
.admin-nav nav a {
  color: #5a5651; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.admin-nav nav a:hover { color: #c44569; border-bottom-color: #c44569; }
.user-box {
  display: flex; gap: 16px; align-items: center;
  font-size: .85rem; color: #8c867d;
}
.user-box a {
  background: #6ba6a3; color: white; padding: 6px 14px;
  border-radius: 6px; font-size: .85rem;
}
.user-box a:hover { background: #4a8784; color: white; }

.admin-main { min-height: calc(100vh - 130px); }
.admin-container { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.admin-container h1 {
  font-size: 2rem; margin-bottom: 24px; color: #2d2a26;
}

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 16px; margin-bottom: 40px;
}
.stat-card {
  background: white; padding: 24px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 8px;
  font-size: .85rem; color: #8c867d; text-transform: uppercase; letter-spacing: .05em;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2.4rem;
  color: #c44569; line-height: 1; font-weight: 600;
}

.data-table {
  width: 100%; background: white; border-collapse: collapse;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.data-table th {
  background: #2d2a26; color: white; text-align: left;
  padding: 12px 16px; font-weight: 500; font-size: .85rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.data-table td {
  padding: 12px 16px; border-bottom: 1px solid #f0ebe1; font-size: .92rem;
}
.data-table tr:hover td { background: #faf7f1; }
.data-table tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block; padding: 3px 10px; font-size: .75rem;
  border-radius: 999px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em;
}
.status-forespoergsel { background: #fff3cd; color: #856404; }
.status-bekraeftet   { background: #d4edda; color: #155724; }
.status-annulleret   { background: #f8d7da; color: #721c24; }

.filter-bar {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: white; padding: 4px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); display: inline-flex;
}
.filter-bar a {
  padding: 8px 16px; border-radius: 6px; color: #5a5651;
  font-size: .9rem; transition: all .15s;
}
.filter-bar a.active { background: #6ba6a3; color: white; }
.filter-bar a:hover:not(.active) { background: #f5f3ef; color: #2d2a26; }

.detail-card {
  background: white; border-radius: 8px; padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 24px 0;
}
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-card h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #8c867d; margin-top: 1em; }
.back-link { font-size: .9rem; color: #6ba6a3; display: inline-block; margin-bottom: 12px; }
.action-row { display: flex; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #f0ebe1; }

.upload-card {
  background: white; padding: 28px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 32px;
  border-left: 4px solid #6ba6a3;
}
.upload-card h2 { margin-top: 0; font-size: 1.4rem; }

.msg { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; }
.msg.success { background: #d4edda; color: #155724; border-left: 4px solid #4caf50; }
.msg.error   { background: #f8d7da; color: #721c24; border-left: 4px solid #c14444; }

.slide-admin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
}
.slide-admin-card {
  background: white; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
}
.slide-admin-card.inactive { opacity: .55; }
.slide-admin-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.slide-form { padding: 16px; flex: 1; }
.slide-form label { margin-bottom: 10px; font-size: .8rem; }
.slide-form input { padding: 6px 10px; font-size: .9rem; }
.slide-actions {
  padding: 0 16px 16px; display: flex; gap: 8px; flex-wrap: wrap;
}

.inline-form { display: inline-block; }
.inline-form input, .inline-form select {
  padding: 6px 10px; font-size: .88rem; margin: 0;
  display: inline-block; width: auto;
}

.admin-footer {
  background: white; padding: 16px 24px; text-align: center;
  border-top: 1px solid #e7e0d3; color: #8c867d;
}
