/**
 * School of Enablers - Quiz Portal & Elementor Theme Styling
 */

.soe-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.soe-nav-menu a {
  text-decoration: none;
  font-weight: 600;
  color: #334155;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.soe-nav-menu a:hover {
  color: #ea580c;
}

/* Hero Section */
.soe-hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.soe-hero-logo {
  height: 90px;
  width: auto;
  margin-bottom: 1rem;
  background: #ffffff;
  padding: 6px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.soe-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}

.soe-hero-motto {
  font-size: 1.15rem;
  color: #fdba74;
  font-style: italic;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.soe-hero-desc {
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.soe-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Tab Navigation */
.soe-nav-tabs {
  display: flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.35rem;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.soe-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soe-tab-btn.active {
  background: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.25);
}

.soe-badge-stage {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: rgba(0,0,0,0.06);
  border-radius: 0.25rem;
  text-transform: uppercase;
}

.soe-tab-btn.active .soe-badge-stage {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.soe-count-bubble {
  font-size: 0.7rem;
  background: #ea580c;
  color: #ffffff;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
}

.soe-bubble-green {
  background: #10b981;
}

.soe-tab-pane {
  display: none;
}

.soe-tab-pane.active {
  display: block;
}

/* Card Boxes */
.soe-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
}

.soe-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.soe-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.soe-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.soe-card-sub {
  font-size: 0.825rem;
  color: #64748b;
  margin: 0.25rem 0 0 0;
}

.soe-workflow-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffedd5;
  color: #9a3412;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.soe-dot-orange {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ea580c;
}

.soe-principal-badge, .soe-admin-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
}

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

.soe-admin-badge {
  background: #dbeafe;
  color: #1e40af;
}

/* Forms */
.soe-form {
  padding: 1.5rem;
}

.soe-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.soe-grid-2-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.soe-form-group {
  margin-bottom: 1rem;
}

.soe-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.soe-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1e293b;
  background: #ffffff;
  box-sizing: border-box;
}

.soe-input:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Question Builder */
.soe-questions-section {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.soe-section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.soe-section-bar h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
}

.soe-total-marks {
  font-size: 0.85rem;
  color: #1e3a8a;
  background: #e0e7ff;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
}

.soe-q-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.soe-q-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.soe-q-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: #e2e8f0;
  color: #334155;
}

.soe-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Buttons */
.soe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.soe-btn-primary {
  background: #1e3a8a;
  color: #ffffff;
}
.soe-btn-primary:hover {
  background: #172554;
}

.soe-btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.soe-btn-secondary:hover {
  background: #f1f5f9;
}

.soe-btn-outline {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}
.soe-btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

.soe-btn-success {
  background: #16a34a;
  color: #ffffff;
}
.soe-btn-success:hover {
  background: #15803d;
}

.soe-btn-warning {
  background: #d97706;
  color: #ffffff;
}
.soe-btn-warning:hover {
  background: #b45309;
}

.soe-btn-danger {
  background: #dc2626;
  color: #ffffff;
}
.soe-btn-danger:hover {
  background: #b91c1c;
}

.soe-btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.soe-submit-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.soe-helper-text {
  font-size: 0.8rem;
  color: #64748b;
}

/* Quiz List Items */
.soe-item-card {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s ease;
}

.soe-item-card:hover {
  background: #f8fafc;
}

.soe-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.soe-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.soe-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.soe-status-pending {
  background: #ffedd5;
  color: #9a3412;
}

.soe-status-approved {
  background: #dcfce7;
  color: #166534;
}

.soe-status-revision {
  background: #fef3c7;
  color: #92400e;
}

.soe-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* Print Sheet Styling */
@media print {
  body * {
    visibility: hidden;
  }
  #soe-printable-area, #soe-printable-area * {
    visibility: visible;
  }
  #soe-printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
  }
}
