/* Modern Election System Styling - OSASA Unified Theme */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --primary: #0a4d2c;
  --primary-dark: #063019;
  --primary-light: #2e8b57;
  --secondary: #8B4513;
  --accent: #d4af37;
  --accent-light: #f1c40f;
  --dark: #0a0a0a;
  --gray: #6c757d;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.2);
  --radius: 20px;
  --transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 800px 600px at 20% 20%, rgba(10, 77, 44, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 600px 800px at 80% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 1000px 600px at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-family: 'Playfair Display', serif;
  position: relative;
  display: inline-block;
  font-weight: 800;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Common Components */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, #b7ca05, #029f49);
  color: var(--white);
  box-shadow: 0 15px 30px rgba(10, 77, 44, 0.4);
}

.btn-primary:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 77, 44, 0.5);
  color: var(--white);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.btn-accent:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.5);
  color: var(--white);
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(10, 77, 44, 0.4);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  font-family: 'Playfair Display', serif;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  font-weight: 600;
  color: var(--dark);
  position: relative;
  transition: var(--transition);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  margin-left: 10px;
}

.main-nav .btn::after {
  display: none;
}

/* Mobile Nav */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  padding: 100px 30px 30px;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid rgba(48, 240, 10, 0.05);
  font-size: 1.1rem;
}

.mobile-nav a:hover {
  color: var(--primary);
  padding-left: 10px;
}

/* Page Spacing for Fixed Header */
main {
  margin-top: 100px;
  flex: 1;
}

.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(10, 77, 44, 0.9), rgba(10, 77, 44, 0.8)), url('../images/about-image.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  margin-top: -100px;
  padding-top: 200px;
}

.page-hero h1 {
  background: linear-gradient(135deg, var(--white), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark), #1a1a1a);
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 1.1rem;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 10px;
}

/* Form Styles */
form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
    font-family: 'Inter', sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 77, 44, 0.1);
    background: var(--white);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    color: var(--gray);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background-color: #f8fcf9;
    color: var(--dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .container { padding: 0 15px; }
    .footer-container { grid-template-columns: 1fr; }
    form { padding: 25px; }
}
/* Additional Component Styles from Login/Register */

/* Google Login Button */
.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    color: #3c4043;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.google-login-btn img {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    padding: 0 20px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type='file'] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    color: #6c757d;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(10, 77, 44, 0.05);
    color: var(--primary);
}

.file-upload-label i {
    margin-right: 10px;
    font-size: 18px;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: #6c757d;
}

/* Auth Pages Container Overrides */
.auth-container {
    padding: 140px 20px 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 50px;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-link i {
    margin-right: 8px;
}

