:root {
  --primary-color: #4DBFAD;
  --secondary-color: #3da896;
  --accent-color: #2e8e80;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
}

/* Custom gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Typography */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  border-radius: 15px;
  padding: 20px;
  min-height: 600px;
  box-shadow: 0 4px 20px rgba(77, 191, 173, 0.3);
}

.dashboard-sidebar .nav-link {
  color: white;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.dashboard-sidebar .nav-link i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateX(5px);
}

.dashboard-sidebar h5 {
  color: white;
  font-weight: 600;
}

/* Dashboard Content */
.dashboard-content {
  padding: 20px;
}

/* Statistics Cards */
.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  color: white;
  line-height: 1;
}

.stat-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-card p {
  color: #666;
  margin: 0;
}

.stat-icon.primary {
  background: var(--primary-color);
}

.stat-icon.success {
  background: var(--success-color);
}

.stat-icon.warning {
  background: var(--warning-color);
}

.stat-icon.info {
  background: var(--info-color);
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Forms */
.form-select,
.form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(77, 191, 173, 0.25);
}

/* Tables */
.table {
  border-radius: 10px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: white;
}

.table thead th {
  border: none;
  padding: 15px;
  font-weight: 600;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background-color: rgba(77, 191, 173, 0.1);
}

/* Badges */
.badge {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
}

/* Modals */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 15px 15px 0 0;
}

/* Progress Bars */
.progress {
  border-radius: 25px;
  height: 25px;
  background-color: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 25px;
  transition: width 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
}

/* Pagination */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 3px;
  border: 1px solid #e0e0e0;
  color: var(--primary-color);
}

.pagination .page-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Dropdowns */
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Background */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(77, 191, 173, 0.9), rgba(46, 142, 128, 0.9));
}

/* Card Links */
.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--accent-color);
}

/* Vote Cards */
.vote-card {
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  background: white;
}

.vote-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(77, 191, 173, 0.2);
}

.vote-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(77, 191, 173, 0.1), rgba(46, 142, 128, 0.1));
}

/* Approval Voting Buttons */
.approval-yes {
  background: linear-gradient(135deg, var(--success-color), #20c997);
  border: none;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.approval-yes:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.approval-yes.selected {
  background: linear-gradient(135deg, #1e7e34, var(--success-color));
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.approval-no {
  background: linear-gradient(135deg, var(--danger-color), #c82333);
  border: none;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.approval-no:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.approval-no.selected {
  background: linear-gradient(135deg, #bd2130, var(--danger-color));
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Status Badges */
.status-upcoming {
  background-color: var(--info-color);
}

.status-ongoing {
  background-color: var(--warning-color);
  color: #333;
}

.status-completed {
  background-color: var(--success-color);
}

.election-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Vote Summary Card */
.vote-summary-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Candidate Cards */
.candidate-card {
  text-align: center;
  padding: 20px;
}

/* Candidate Avatar */
.candidate-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  margin: 0 auto 15px;
}

/* Candidate Modal */
.candidate-modal-body {
  padding: 30px;
}

.candidate-details h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 40px 0;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-sidebar {
    min-height: auto;
    margin-bottom: 20px;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .hero-section {
    padding: 40px 0;
  }

  .approval-yes,
  .approval-no {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .dashboard-sidebar .nav-link {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card h3 {
    font-size: 1.5rem;
  }
}

/* YouTube Video Container */
.youtube-video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.youtube-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
