/* Modern Custom Design System - Shankarrao Jagtap Arts and Commerce College, Wagholi */

:root {
  --primary-navy: #1f295b;
  --primary-blue: #2a3b8f;
  --primary-teal: #0097B2;
  --accent-gold: #c78a00;
  --accent-gold-light: #f5b025;
  --bg-slate: #f4f5f8;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --card-border: #E2E8F0;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-slate);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top Contact Bar */
.top-header {
  background: var(--primary-navy);
  color: white;
  padding: 0.45rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.top-header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.top-contact-info span {
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* College Branding Banner */
.brand-banner {
  background: #f4f4f6;
  border-bottom: 3.5px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 1.5rem;
}
.brand-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Logos & Media */
.banner-left-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kes-logo-img {
  height: 125px;
  width: 125px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}
.kes-logo-img:hover {
  transform: scale(1.05);
}

.banner-right-portrait {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-img {
  height: 125px;
  width: 125px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}
.portrait-img:hover {
  transform: scale(1.05);
}

/* Center Typography */
.banner-center-text {
  text-align: center;
  flex-grow: 1;
  padding: 0 0.5rem;
}
.college-motto {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.1rem;
}
.college-sanstha {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}
.college-main-name {
  color: var(--primary-navy);
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.65rem;
  font-weight: 900;
  margin: 0.2rem 0;
  letter-spacing: -0.01em;
}
.college-gold-line {
  height: 4px;
  background: var(--accent-gold);
  width: 55%;
  margin: 0.2rem auto 0.4rem auto;
  border-radius: 2px;
}
.college-address {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}
.college-affiliation {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-blue);
}
.college-naac {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .brand-container {
    flex-direction: column;
    text-align: center;
  }
  .college-main-name {
    font-size: 1.3rem;
  }
  .college-gold-line {
    width: 80%;
  }
  .kes-logo-img, .portrait-img {
    height: 95px;
    width: 95px;
  }
  .top-header-container {
    justify-content: center;
  }
}

/* Main Navigation Bar */
.nav-header {
  background: var(--primary-navy);
  border-bottom: 3px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-link {
  color: white;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-gold-light);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: white;
  padding: 2.75rem 1.5rem 4.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: #dbeafe;
  max-width: 650px;
  margin: 0 auto;
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.hero-divider span {
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* Form Container Card */
.form-wrapper {
  max-width: 960px;
  margin: -3.25rem auto 4rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 20;
  width: 100%;
}
.form-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.form-card-top-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--primary-navy), var(--accent-gold), var(--primary-blue));
}
.form-card-body {
  padding: 2.25rem;
}

/* Section Titles */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0e7ff;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.form-section-title h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 700;
}

/* Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-navy);
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: white;
  transition: all 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(42,59,143,0.15);
}
.form-control[readonly] {
  background-color: #f1f5f9;
  font-weight: 700;
  color: var(--primary-navy);
}

/* Department Pill Selection */
.dept-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.dept-pill {
  position: relative;
  cursor: pointer;
}
.dept-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dept-pill span {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
  background: white;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
}
.dept-pill input[type="radio"]:checked + span {
  background: var(--primary-navy);
  color: white;
  border-color: var(--primary-navy);
  box-shadow: 0 2px 8px rgba(27,35,82,0.3);
}

/* Question Option Cards */
.question-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.question-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}
.question-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}
.option-card {
  position: relative;
  cursor: pointer;
}
.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.5rem;
  border: 1.5px solid var(--card-border);
  border-radius: 0.85rem;
  background: white;
  text-align: center;
  transition: all 0.2s ease;
}
.option-emoji {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.option-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.option-card input[type="radio"]:checked + .option-content {
  border-color: var(--primary-blue);
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(42,59,143,0.15);
}
.option-card input[type="radio"]:checked + .option-content .option-text {
  color: var(--primary-blue);
}

/* Submit Actions */
.btn-submit {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: white;
  border: none;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(27,35,82,0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(27,35,82,0.4);
}
.btn-reset {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
}
.btn-reset:hover {
  color: #ef4444;
}

/* Footer */
.main-footer {
  background: var(--primary-navy);
  color: white;
  margin-top: auto;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  border-top: 4px solid var(--accent-gold);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h3 {
  color: var(--accent-gold-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-col p, .footer-col li {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  list-style: none;
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Admin Dashboard Specifics */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: white;
  border-radius: 0.85rem;
  padding: 1.25rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--card-border);
  padding-bottom: 0.5rem;
}
.admin-tab {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0.5rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.admin-tab.active {
  background: var(--primary-navy);
  color: white;
}
.data-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 0.85rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
.data-table th {
  background: #f1f5f9;
  color: var(--primary-navy);
  padding: 0.85rem 1rem;
  font-weight: 700;
}
.data-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--card-border);
}
