/* Blog System - Premium Design Language */
:root {
  --primary: #fbbf24;
  --primary-hover: #f59e0b;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --success: #10b981;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  margin: 0;
  padding: 0;
}

/* Glassmorphism Classes */
.glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px border rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  border: 1px border rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

/* Auth / Login */
#login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Dashboard Layout */
#dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

#side-nav {
  padding: 2rem;
  border-right: 1px border rgba(255, 255, 255, 0.1);
}

#main-content {
  padding: 2.5rem;
  overflow-y: auto;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-gray);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px border rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

/* SEO Highlight */
.seo-input {
  border-left: 4px border var(--primary);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px border rgba(255, 255, 255, 0.05);
}

th {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
}

/* Utility */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: #000; }
.btn-outline { background: transparent; border: 1px border var(--text-white); color: #fff; }

.status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
}
.badge-draft { background: rgba(156, 163, 175, 0.2); color: var(--text-gray); }
.badge-published { background: rgba(16, 185, 129, 0.2); color: var(--success); }
/* Image Upload Zone */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(251, 191, 36, 0.05);
}

.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(251, 191, 36, 0.1);
  transform: scale(1.02);
}

.upload-zone i {
  font-size: 2.5rem;
  color: var(--text-gray);
}

.upload-zone p {
  margin: 0;
  color: var(--text-gray);
}

.upload-zone .browse-text {
  color: var(--primary);
  font-weight: 700;
}

#preview-container {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 0.75rem;
}

.remove-img-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-weight: bold;
}
