@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: linear-gradient(
    135deg,
    #1f1f9c 0%,
    #312e81 45%,
    #4f46e5 100%
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Wrapper to push footer to bottom */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* Header Styles */
.header {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border: 1px solid rgba(31, 31, 156, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header h1 {
  color: #111827;
  font-size: 24px;
  font-weight: 700;
}

.user-info {
  color: #475569;
}

.user-info a {
  margin-left: 15px;
  color: #1f1f9c;
  text-decoration: none;
  font-weight: 500;
}

.user-info a:hover {
  text-decoration: underline;
}

/* Form Container */
.form-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(31, 31, 156, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.form-container h2 {
  margin-bottom: 20px;
  color: #111827;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #1e293b;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1f1f9c;
  box-shadow: 0 0 0 3px rgba(31, 31, 156, 0.12);
}

/* Buttons */
button {
  background: #1f1f9c;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
}

button:hover {
  background: #17177a;
}

button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Alert Messages */
.success {
  background: #16a34a;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.error {
  background: #dc2626;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.warning {
  background: #ea580c;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Info Text */
.info-text {
  background: #eef2ff;
  border-left: 4px solid #1f1f9c;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #312e81;
  border-radius: 6px;
}

/* Statistics Cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(31, 31, 156, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.stat-card h3 {
  font-size: 36px;
  color: #1f1f9c;
  margin-bottom: 10px;
  font-weight: 700;
}

.stat-card p {
  color: #475569;
  font-size: 14px;
}

.stat-card small {
  color: #94a3b8;
  font-size: 12px;
}

/* Info Containers */
.info-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(31, 31, 156, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.info-container h3 {
  margin-bottom: 15px;
  color: #111827;
  border-bottom: 2px solid #1f1f9c;
  padding-bottom: 10px;
}

/* Tables */
.nomination-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.nomination-table th,
.nomination-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.nomination-table th {
  background: #eef2ff;
  font-weight: 600;
  color: #312e81;
}

.nomination-table tr:hover {
  background: #f8fafc;
}

/* Admin Navigation */
.admin-nav {
  background: white;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid rgba(31, 31, 156, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.admin-nav a {
  display: inline-block;
  padding: 8px 15px;
  background: #1f1f9c;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.admin-nav a:hover {
  background: #17177a;
}

/* Footer */
.footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  width: 100%;
}

.footer a {
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #c7d2fe;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .user-info a {
    margin: 0 10px;
  }

  .nomination-table {
    font-size: 14px;
  }

  .nomination-table th,
  .nomination-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 20px;
  }
}

/* Dropdown disabled options */
select option:disabled {
  color: #94a3b8;
  font-style: italic;
  background-color: #f8fafc;
}