/* Miscellaneous styles for errors, friends, and subscriptions */


/* ====== ERROR ====== */
.error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* ====== FRIEND LIST ====== */
.friend-item {
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: center;
}

.friend-actions button {
  background: #dc2626;
}

.friend-actions button:hover {
  background: #b91c1c;
}

/* ====== SUBSCRIPTION CARDS ====== */
.plan-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #dbe2f0;
  background: #fff;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}


/* Grid */
.sq-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Buttons */
.sq-btn,
.sq-btn-small,
.sq-btn-danger {
  background: #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.sq-btn-small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.sq-btn-danger {
  background: #d9534f;
}

.sq-inline-btns {
  display: flex;
  gap: 10px;
}

/* Top 3 winners */
.sq-top3 {
  display: flex;
  gap: 15px;
}

.sq-top3-card {
  flex: 1;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

.sq-rank {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Posts */
.sq-post {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* Admin Dashboard Styles */
.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: #374151;
  font-weight: 600;
}

.stat-number {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.admin-actions {
  margin-top: 30px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.admin-actions h3 {
  margin: 0 0 15px 0;
  color: #374151;
  font-size: 1.2rem;
  font-weight: 600;
}



/* Unified admin dashboard and management styles */

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.admin-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.admin-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.admin-card {
  background: var(--surface);
  padding: 1.4rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  transition: 0.2s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =============== BUTTONS =============== */

.btn {
  padding: .55rem 1rem;
  font-size: .9rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* =============== SEARCH BAR =============== */

.admin-search {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.admin-search input {
  flex: 1;
  padding: .6rem .8rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .9rem;
}

/* =============== TABLES =============== */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table thead {
  background: #f3f4f6;
}

.admin-table th,
.admin-table td {
  padding: .75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.admin-table tr:hover {
  background: #f9fafb;
}

/* =============== FORMS =============== */

.admin-form label {
  display: block;
  font-size: .9rem;
  margin-bottom: .3rem;
  color: var(--text-light);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: .6rem .8rem;
  margin-bottom: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .9rem;
}

.admin-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* =============== MODAL (for user-edit & settings) =============== */

.admin-modal {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  margin: 2rem auto;
}

/* =============== STATUS BADGES =============== */

.badge {
  padding: .25rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-green {
  background: #d1fae5;
  color: #065f46;
}

.badge-yellow {
  background: #fef3c7;
  color: #92400e;
}

.badge-red {
  background: #fee2e2;
  color: #991b1b;
}

/* Responsive */
@media (max-width: 600px) {
  .admin-row {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

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



/* Smooth hover transitions */
* {
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

/* Slightly nicer table row hover */
table tbody tr:hover {
  background-color: #f9fafb;
}

/* Custom container on very large screens */
@media (min-width: 1600px) {
  .max-w-6xl {
    max-width: 80rem;
  }
}

/* ========================================================
   GLOBAL UI REVAMP - PREMIUM SIDEQUEST DESIGN SYSTEM
   ======================================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.dark .glass-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.text-gradient-premium {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-button {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.premium-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
  filter: brightness(1.1);
}

.premium-button:active {
  transform: translateY(0);
}

.stat-vibrant {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.card-hover-effect {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover-effect:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Input Overrides for Premium Forms */
.premium-input {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  transition: all 0.2s ease;
}

.dark .premium-input {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 1);
  color: #f1f5f9;
}

.premium-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background: white;
}

.dark .premium-input:focus {
  background: rgba(30, 41, 59, 0.8);
}