/* Import a clean Google Font (Roboto) */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* Global Reset & Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #FFFFFF; /* UT White */
  color: #4B4B4B; /* UT Smokey */
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(135deg, #FF8200, #e56e00); /* UT Orange gradient */
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(75,75,75,0.2);
}

header h1 {
  color: #FFFFFF; /* UT White */
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Navigation */
nav {
  margin-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #FFFFFF; /* UT White */
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #4B4B4B; /* UT Smokey */
}

/* Container for Page Content */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(75,75,75,0.1);
  border-radius: 8px;
}

/* Main Content */
main {
  padding: 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #4B4B4B;
  margin-bottom: 15px;
}

/* Paragraphs */
p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th, table td {
  border: 1px solid #4B4B4B;
  padding: 10px;
  text-align: left;
}

table th {
  background-color: #FF8200;
  color: #FFFFFF;
  font-weight: 600;
}

/* Forms */
form {
  margin: 20px 0;
}

form .form-group {
  margin-bottom: 15px;
}

form label {
  font-weight: 600;
  color: #4B4B4B;
  margin-bottom: 5px;
  display: block;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="tel"],
form select,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #4B4B4B;
  border-radius: 4px;
  font-size: 1em;
}

/* Buttons */

/* Style navigation links as buttons */
.admin-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-nav ul li {
  margin: 5px;
}

.admin-nav ul li a.button-link {
  background-color: #FF8200; /* UT Orange */
  color: #FFFFFF; /* UT White */
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.admin-nav ul li a.button-link:hover,
.admin-nav ul li a.button-link:focus {
  background-color: #e56e00; /* Slightly darker UT Orange */
  text-decoration: none;
}

button, input[type="submit"] {
  background-color: #FF8200;
  color: #FFFFFF;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover, input[type="submit"]:hover {
  background-color: #e56e00;
}

/* Footer */
footer {
  background-color: #4B4B4B;
  color: #FFFFFF;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */

.landing-page {
  background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #FF8200 0%, #e56e00 100%);
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 15px;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: #FFFFFF;
  color: #FF8200;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  display: block;
}

/* Features Section */
.features-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  color: #4B4B4B;
  margin-bottom: 50px;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(75,75,75,0.15);
  border-color: #FF8200;
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: #FF8200;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.feature-card p {
  color: #4B4B4B;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Landing Footer */
.landing-footer {
  background-color: #4B4B4B;
  color: #FFFFFF;
  text-align: center;
  padding: 30px 20px;
  margin-top: 0;
}

.landing-footer p {
  margin: 0;
  font-size: 0.95em;
}

/* ============================================
   AUTHENTICATION PAGES STYLES
   ============================================ */

.auth-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  animation: fadeIn 0.5s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  color: #FF8200;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #e56e00;
}

.auth-title {
  font-size: 2.2em;
  color: #4B4B4B;
  margin-bottom: 10px;
  font-weight: 700;
}

.auth-subtitle {
  font-size: 1.1em;
  color: #6c757d;
  margin-bottom: 0;
}

.auth-form-wrapper {
  margin-top: 30px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  color: #4B4B4B;
  font-weight: 600;
  font-size: 0.95em;
}

.auth-form input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #FF8200;
  box-shadow: 0 0 0 3px rgba(255,130,0,0.1);
}

.auth-form input::placeholder {
  color: #adb5bd;
}

.auth-links {
  margin-top: 25px;
  text-align: center;
}

.auth-links p {
  margin: 10px 0;
  color: #6c757d;
  font-size: 0.95em;
}

.link-primary {
  color: #FF8200;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-primary:hover {
  color: #e56e00;
  text-decoration: underline;
}

.link-secondary {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-secondary:hover {
  color: #4B4B4B;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PANEL PAGES STYLES (Admin, Advisor, Chair, Delegate)
   ============================================ */

/* Modern Panel Navigation */
.panel-nav {
  background: linear-gradient(135deg, #FFFFFF 0%, #f8f9fa 100%);
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  border-radius: 8px;
}

.panel-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.panel-nav ul li {
  display: inline-block;
}

.panel-nav ul li a {
  display: inline-block;
  background-color: #FF8200;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(255,130,0,0.2);
}

.panel-nav ul li a:hover {
  background-color: #e56e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255,130,0,0.3);
}

.panel-nav ul li a.active {
  background-color: #4B4B4B;
  box-shadow: 0 2px 4px rgba(75,75,75,0.3);
}

/* Dashboard Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #f8f9fa 100%);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #FF8200;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.stat-card h3 {
  color: #6c757d;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .stat-number {
  color: #FF8200;
  font-size: 2.5em;
  font-weight: 700;
  margin: 10px 0;
}

.stat-card p {
  color: #4B4B4B;
  font-size: 0.9em;
  margin: 5px 0;
}

/* Content Sections */
.content-section {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 30px;
}

.content-section h2 {
  color: #4B4B4B;
  font-size: 1.8em;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #FF8200;
}

.content-section h3 {
  color: #4B4B4B;
  font-size: 1.4em;
  margin: 25px 0 15px 0;
}

.content-section h4 {
  color: #FF8200;
  font-size: 1.2em;
  margin: 20px 0 10px 0;
}

/* Modern Tables */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.modern-table thead {
  background: linear-gradient(135deg, #FF8200 0%, #e56e00 100%);
}

.modern-table th {
  color: #FFFFFF;
  font-weight: 600;
  padding: 15px;
  text-align: left;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
  color: #4B4B4B;
}

.modern-table tbody tr {
  transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
  background-color: #f8f9fa;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

/* Action Buttons */
.action-btn {
  display: inline-block;
  padding: 6px 14px;
  margin: 2px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.action-btn-primary {
  background-color: #FF8200;
  color: #FFFFFF;
}

.action-btn-primary:hover {
  background-color: #e56e00;
  transform: translateY(-1px);
}

.action-btn-secondary {
  background-color: #6c757d;
  color: #FFFFFF;
}

.action-btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
}

.action-btn-danger {
  background-color: #dc3545;
  color: #FFFFFF;
}

.action-btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}

.action-btn-success {
  background-color: #28a745;
  color: #FFFFFF;
}

.action-btn-success:hover {
  background-color: #218838;
  transform: translateY(-1px);
}

/* Form Sections */
.form-section {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #e9ecef;
}

.form-section h3 {
  color: #4B4B4B;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

/* Alert Messages */
.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin: 20px 0;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

/* Committee Cards */
.committee-card {
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #FF8200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.committee-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateX(5px);
}

.committee-card h3 {
  color: #FF8200;
  margin-bottom: 10px;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  margin: 0 5px;
}

.badge-primary {
  background-color: #FF8200;
  color: #FFFFFF;
}

.badge-secondary {
  background-color: #6c757d;
  color: #FFFFFF;
}

.badge-success {
  background-color: #28a745;
  color: #FFFFFF;
}

.badge-warning {
  background-color: #ffc107;
  color: #4B4B4B;
}

.badge-danger {
  background-color: #dc3545;
  color: #FFFFFF;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #FF8200 0%, #e56e00 100%);
  color: #FFFFFF;
  padding: 30px 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(255,130,0,0.2);
}

.page-header h1 {
  color: #FFFFFF;
  font-size: 2em;
  margin-bottom: 5px;
}

.page-header p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1em;
  margin: 0;
}

/* Improved Inputs */
.panel-input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
  background-color: #FFFFFF;
}

.panel-input:focus {
  outline: none;
  border-color: #FF8200;
  box-shadow: 0 0 0 3px rgba(255,130,0,0.1);
}

.panel-select {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
  background-color: #FFFFFF;
}

.panel-select:focus {
  outline: none;
  border-color: #FF8200;
  box-shadow: 0 0 0 3px rgba(255,130,0,0.1);
}

/* Loading States */
.loading {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-style: italic;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  color: #4B4B4B;
  margin-bottom: 10px;
}

.empty-state p {
  color: #6c757d;
  font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2em;
  }
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    margin: 10px 0;
  }
  .container {
    padding: 15px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5em;
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .panel-nav ul {
    flex-direction: column;
    gap: 8px;
  }
  .panel-nav ul li a {
    display: block;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .content-section {
    padding: 20px;
  }
  .page-header {
    padding: 20px;
  }
  .page-header h1 {
    font-size: 1.5em;
  }
  .modern-table {
    font-size: 0.9em;
  }
  .modern-table th,
  .modern-table td {
    padding: 8px 10px;
  }
}
