/* vote.css */

/* General styling */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Header */
header {
  background-color: #0a0a0a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-weight: 700;
  color: #ffffff;
}

header img {
  max-height: 50px;
  transition: opacity 0.3s ease;
}

/* Voting Information */
.alert-info {
  background-color: #0d6efd;
  color: #ffffff;
  font-size: 1.1rem;
  border: none;
}

/* Filter Section */
.filter-section {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #0a0a0a;
  padding: 1rem;
}

.filter-section h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.filter-section .form-select,
.filter-section .form-control {
  border-radius: 5px;
  font-size: 0.95rem;
}

.filter-section .input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Participant Cards */
.participant-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #0a0a0a;
  overflow: hidden;
  transition: transform 0.2s ease;
  height: 450px; /* Fixed height for consistency */
  display: flex;
  flex-direction: column;
}

.participant-card:hover {
  transform: translateY(-5px);
}

.participant-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.participant-card .p-3 {
  flex-grow: 1;
  overflow-y: auto; /* Scroll if content overflows */
  padding: 0.5rem; /* Reduced padding to fit content */
}

.participant-card p {
  margin: 0;
  font-size: 0.9rem; /* Reduced font size to fit */
  color: #333333;
}

.participant-card .btn {
  font-size: 0.8rem; /* Reduced button font size */
  padding: 0.2rem 0.5rem; /* Reduced padding */
  margin-bottom: 0.2rem;
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
  transition: background-color 0.3s ease;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-outline-success {
  border-color: #28a745;
  color: #28a745;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.btn-outline-success:hover {
  background-color: #28a745;
  color: #ffffff;
}

.btn-outline-danger {
  border-color: #dc3545;
  color: #dc3545;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #ffffff;
}

/* Success Message */
#successMessage {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #0a0a0a;
  max-width: 600px;
  margin: 2rem auto;
}

#successMessage h2 {
  font-weight: 700;
  color: #28a745;
}

#successMessage p {
  font-size: 1rem;
  color: #666666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .alert-info {
    font-size: 1rem;
  }

  .filter-section {
    margin-top: 1rem;
  }

  .participant-card {
    margin-bottom: 1.5rem;
    height: 400px; /* Slightly reduced for mobile */
  }

  .participant-card .p-3 {
    height: 180px; /* Adjusted for mobile */
  }

  .participant-card .btn {
    width: 100%;
    margin-bottom: 0.2rem;
  }

  .participant-card .d-flex {
    flex-direction: column;
    gap: 0.3rem;
  }

  .row > div {
    flex: 0 0 100%;
    max-width: 100%;
  }
}