/* ============================================
   Cute Professional School Admin Theme
   Clean, Elegant Dashboard Design
   ============================================ */
:root {
  /* Pastel Warm Palette */
  --primary-bg: #FFF8D6;
  --secondary-bg: #FFF3C4;
  --card-bg: #FFFFFF;
  --primary-text: #0F2744;
  --secondary-text: #4B5563;
  --accent: #E9C46A;
  --border: #F2E7B5;
  --gold: #F4B400;

  /* Status Colors */
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Shadow System */
  --shadow-sm: 0 2px 8px rgba(15, 39, 68, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 39, 68, 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  color: var(--primary-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Soft floating background elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(233, 196, 106, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(242, 231, 181, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(233, 196, 106, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Layout & Container
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
  position: relative;
  z-index: 1;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 32px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

header h1 {
  margin: 0;
  font-size: 28px;
  color: var(--primary-text);
  letter-spacing: -0.5px;
}

header .subtitle {
  margin-left: auto;
  color: var(--secondary-text);
  font-size: 14px;
  font-weight: 500;
}

.muted {
  color: var(--secondary-text);
}

/* Navigation */
.nav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--primary-text);
  background: rgba(233, 196, 106, 0.1);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover,
.nav button:hover {
  background: var(--accent);
  color: var(--primary-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav a.active {
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: white;
  border-color: transparent;
}

/* ============================================
   Cards & Content Sections
   ============================================ */
.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  animation: cardIn 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card h2 {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: var(--primary-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3 {
  margin: 20px 0 12px 0;
  font-size: 16px;
  color: var(--secondary-text);
}

/* ============================================
   Stats Display
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.stat {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 180, 0, 0.05), rgba(233, 196, 106, 0.05));
  border: 1px solid var(--border);
  text-align: center;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-text);
}

.stat .label {
  color: var(--secondary-text);
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================
   Buttons & Controls
   ============================================ */
.btn,
button,
input[type="button"],
input[type="submit"] {
  background: linear-gradient(135deg, var(--gold), #e6ba00);
  padding: 12px 24px;
  border-radius: 16px;
  border: none;
  color: var(--primary-text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Poppins', -apple-system, sans-serif;
  box-shadow: var(--shadow-sm);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active {
  transform: translateY(-1px) scale(0.98);
}

.btn:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Button Variants */
.btn-secondary {
  background: rgba(233, 196, 106, 0.2);
  border: 2px solid var(--accent);
  color: var(--primary-text);
}

.btn-secondary:hover {
  background: rgba(233, 196, 106, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #16A34A);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #16A34A, #15803D);
}

.btn-small {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: 600;
  color: var(--primary-text);
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 14px;
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--primary-text);
  background: white;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.1);
}

input::placeholder {
  color: rgba(15, 39, 68, 0.4);
}

/* ============================================
   Lists & Tables
   ============================================ */
.list-item,
.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 180, 0, 0.03), rgba(233, 196, 106, 0.03));
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.list-item:hover,
.table-row:hover {
  background: linear-gradient(135deg, rgba(244, 180, 0, 0.08), rgba(233, 196, 106, 0.08));
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.list-item-name {
  font-weight: 600;
  color: var(--primary-text);
  flex: 1;
}

.list-item-actions {
  display: flex;
  gap: 6px;
}

.list-item-actions button {
  padding: 6px 10px;
  font-size: 12px;
  min-width: auto;
}

/* ============================================
   Status Indicators
   ============================================ */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-open {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  color: #15803D;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-closed {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-voted {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
  color: #1E40AF;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ============================================
   Modal & Overlay
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 39, 68, 0.3);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  animation: slideUp 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.gap-12 {
  gap: 12px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

/* ============================================
   Dividers & Separators
   ============================================ */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 24px 0;
  border: none;
}

hr, .section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 20px 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header .subtitle {
    margin-left: 0;
  }

  header h1 {
    font-size: 24px;
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .stat .num {
    font-size: 24px;
  }

  .card {
    padding: 20px;
  }

  .list-item,
  .table-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item-actions {
    align-self: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }

  header h1 {
    font-size: 20px;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }

  .btn,
  button {
    padding: 10px 16px;
    font-size: 13px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.btn{background:linear-gradient(90deg,var(--gold),#e6ba00);padding:10px 14px;border-radius:10px;border:none;color:#0f2744;font-weight:700;cursor:pointer}
