/*home section*/
* {
  margin: 0;
  padding: 0;
  font-family: "Brixton-Outline", serif;
}
.homeBody {
  background: rgb(107, 9, 9);
  min-height: 100vh;
}
.homebg {
  position: absolute;
  width: 100%;
  height: 122vh;
  object-fit: cover;
  opacity: 0.1;
  z-index: 0;
}
.logo {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px 8px 20px;
  background: #f7f6f6;
  line-height: 1px;
  width: 100%;
  z-index: 1;
}
.logoName {
  color: rgba(0, 0, 0, 0.699);
}
.electionInfo {
  font-family: "Candara-light", serif;
  color: rgb(2, 2, 2);
}
.secure {
  font-size: 17px;
}
.homearea {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 50px;
  gap: 60px;
}
.homeWelcome {
  text-align: center;
  color: white;
  margin-left: 50px;
}

.homeWelcome h2 {
  font-size: 60px;
  font-weight: bold;
  margin-top: 80px;
}
.homeWelcome p {
  line-height: 0;
  margin-top: 40px;
  font-size: 25px;
  z-index: 1;
}
.cards {
  display: flex;
  align-items: center;
  gap: 85px;
  padding-top: 80px;
  padding-right: 90px;
}
.card1 {
  border: 1px solid rgb(255, 253, 253);
  border-radius: 5px;
  text-align: center;
  background: #8f8585ee;
  width: 45%;
  height: 50vh;
  padding-top: 40px;
  z-index: 1;
  transition: transform 0.3s ease;
}
.card1:hover {
  transform: translateY(-8px);
}
.card2 {
  border: 1px solid rgb(255, 255, 255);
  border-radius: 5px;
  text-align: center;
  background: #8f8585ee;
  width: 45%;
  height: 50vh;
  padding-top: 40px;
  z-index: 1;
  transition: transform 0.3s ease;
}
.card2:hover {
  transform: translateY(-8px);
}
.cards img {
  width: 60%;
  height: 50%;
  opacity: 0.7;
}
.card2 img {
  width: 50%;
}
.cards button {
  margin-top: 60px;
  color: rgb(0, 0, 0);
  background-color: #ffffff;
  border-radius: 10px;
  border: none;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
}
.cards button:hover {
  background-color: #440c0a;
  color: white;
  transform: scale(1.1);
}
.aboutus {
  margin-top: 17%;
  margin-left: 50px;
  font-size: 25px;
  text-align: center;
  color: white;
  word-wrap: break-word;
  width: 600px;
  line-height: 1;
}
.caption {
  display: inline-flex;
  margin: 1% 0 0 54%;
  text-align: center;
  color: white;
  font-size: 20px;
  word-wrap: break-word;
  max-width: 500px;
}
.loginBody {
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #f8faff, #fafbfc);
  font-family: "Montserrat", sans-serif;
}
.page-wrapper {
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #f8faff, #fafbfc);
}
.login-box {
  width: 30%;
  height: 45vh;
  background: #969bb8;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(27, 15, 134, 0.788);
  justify-content: center;
  align-items: center;
  padding: 40px 40px 50px 40px;
}
.login-box h2 {
  text-align: center;
}
.login-box label {
  font-size: 18px;
  color: white;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.studentLogin input {
  width: 90%;
  padding: 14px 18px;
  margin-bottom: 25px;
  border-radius: 30px;
  border: 4px solid #615d5d;
  background: transparent;
  font-size: 16px;
  color: white;
  font-weight: 500;
}
.studentLogin input::placeholder {
  color: #f0f0f0;
  font-weight: 400;
}
.enterBtn {
  width: 100%;
  padding: 14px 18px;
  background: #d9d9d9;
  border: none;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 25px;
  color: black;
}
.enterBtn:hover {
  background: #6e0505;
  color: white;
}
.loginError {
  color: red;
  text-align: center;
}
.modal h2 {
  text-align: center;
}
.modal {
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(27, 15, 134, 0.788);
  justify-content: center;
  align-items: center;
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-input {
  width: 100%;
  padding: 10px;
  padding-right: 45px;
}

.password-wrapper i {
  position: absolute;
  top: 35%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
  font-size: 18px;
}

.password-wrapper i:hover {
  color: #000;
}
.swal-error {
  color: rgb(119, 25, 25);
  margin-bottom: 10px;
  text-align: center;
}
.modal-content {
  background: #ffffff;
  width: 420px;
  padding: 20px;
  margin: 8% auto;
  border-radius: 8px;
  position: relative;
}

.closeBtn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 30px;
  cursor: pointer;
  color: rgb(122, 37, 37);
}
.formCandidacy {
  display: none;
}
.file-candidacy-popup {
  width: 600px !important;
  z-index: 1000 !important;
  margin-top: 5% !important;
}
.candidacy-history {
  width: 600px !important;
  z-index: 1000 !important;
  margin-top: 5% !important;
}
.student-candidate-popup {
  width: 600px !important;
  z-index: 1000 !important;
  margin-top: 3% !important;
}

/*change password*/
.changePass {
  margin-top: 9%;
  width: 35%;
}
.cancel:hover {
  background-color: rgb(220, 100, 79);
  font-weight: bold;
}
.change:hover {
  background-color: rgb(5, 153, 246);
  font-weight: bold;
}
.card-header {
  background-color: rgb(217, 217, 217);
}

/*Dashborad*/
.studentDashBody {
  margin: 0;
  font-family: Georgia, serif;
  background-color: #f2f2f2;
}

/* NAVBAR */
.navbar {
  background: linear-gradient(to right, #801e1ee8, #801e1ee8);
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  z-index: 9999;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.navbar a:hover {
  text-decoration: underline;
}
.nav-center {
  font-size: 28px;
  font-weight: bold;
  align-items: center;
  text-align: center;
  padding-right: 2%;
}
.amaLogo {
  height: 50px;
  color: rgb(252, 252, 252);
}

/* WELCOME */
.welcomeProfile {
  align-items: left;
  text-align: left;
  margin-left: 10px;
  margin-top: 10px;
}
.welcome {
  color: white;
  font-size: 20px;
}
.welcomeandname {
  display: inline-flex;
}
.welcomeandname img {
  width: 5%;
  height: 5%;
}
.username {
  font-size: 20px;
}
.candidatesEvents {
  margin-left: 50px;
}
/* student Sidebar */
.studentSidebar {
  position: fixed;
  grid-area: sidebar;
  background: rgb(121, 50, 50);
  padding: 20px;
  height: 92vh;
  width: 17%;
}

.studentSidebar a {
  white-space: nowrap;
  margin-top: 20px;
  display: block;
  font-size: 25px;
  text-align: center;
  color: rgb(255, 253, 253);
  text-decoration: none;
  margin-bottom: 15px;
}

.studentSidebar a:hover {
  border-radius: 5px;
  transform: scaleX(1.1);
  font-weight: bold;
  background-color: rgba(188, 185, 185, 0.692);
}
.studentMenuToggle {
  display: none;
}
/* BOXES */
.fourBox {
  display: inline-flex;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 25px 0 0 300px;
}

.right-box {
  background: rgba(117, 116, 116, 0.623);
  padding: 30px;
  width: 50%;
  height: 85vh;
  border-radius: 10px;
  text-align: center;
  margin-right: 50px;
}
.right-box p {
  margin-top: 20px;
  font-size: 35px;
  color: rgba(255, 255, 255, 0.973);
}
.right-box img {
  width: 80%;
  height: 50vh;
  border-radius: 20px;
  margin-bottom: 20px;
}

.left-box {
  background: rgba(117, 116, 116, 0.623);
  padding: 30px;
  width: 50%;
  height: 85vh;
  border-radius: 10px;
  text-align: center;
  margin-right: 50px;
}
.left-box p {
  margin-top: 20px;
  font-size: 35px;
  color: white;
}
/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  width: 400px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.modal-content input,
.modal-content textarea,
.platform textarea {
  margin: 10px 0;
  padding: 10px;
  width: 100%;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

/*candidates.php*/
.candidatesBody {
  background: linear-gradient(to bottom, white, gray);
  min-height: 100vh;
}

.candidatesArea {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 190px 100px 0 30px;
}

.candidatesArea p {
  font-size: 30px;
}
.platformText {
  text-align: justify;
  word-wrap: break-word;
  max-width: 500px;
}
.approvedCandidates {
  padding: 100px 100px 0 180px;
}
.candidates-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.candidate-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 160px;
}

.candidate-card:hover {
  transform: scale(1.05);
}

.candidate-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1f2933;
  margin-bottom: 10px;
}

.candidate-name {
  font-weight: 600;
  margin: 0;
}

.candidate-position {
  color: gray;
}

/*ADMIN PAGE*/

.adminBody {
  font-family: Georgia, serif;
  background: linear-gradient(to bottom, #c4c4c4, #cccccc);
  height: 100vh;
}

.topBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #5e1616;
  color: rgb(107, 106, 106);
  padding: 20px;
  text-align: right;
  font-size: 22px;
}
.topBar a {
  color: rgb(238, 233, 233);
  text-decoration: none;
}

.last-login {
  text-align: right;
  padding: 10px 30px;
}
.welcomeAdmin {
  font-size: 40px;
  margin-left: 40px;
}
.adminText h1,
p {
  margin-bottom: 25px;
}
.main-box {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 70%;
  margin: 100px auto;
  background: #fffdfd;
  border-radius: 50px;
  padding: 30px;
  transition: 0.3s;
}
.main-box:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.adminText {
  margin-bottom: 70px;
}
.adminText p,
li {
  font-size: 25px;
}
.adminText p {
  margin-left: 0;
}
/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal:target {
  display: flex;
}

.modal-content {
  background: #cecece;
  padding: 40px;
  width: 350px;
}

.close {
  display: block;
  margin-top: 15px;
  color: red;
}

/*admin_login*/
.modal-content {
  width: 25%;
  background: #969bb8;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(27, 15, 134, 0.788);
  justify-content: center;
  align-items: center;
  padding: 40px 40px 50px 40px;
}
.closeBtn {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}
.error-message {
  color: red;
  margin-bottom: 10px;
}
.success-message {
  color: green;
  margin-bottom: 10px;
}

.modal-content h2 {
  text-align: center;
}
.modal-content label {
  font-size: 18px;
  color: white;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.modal-content input {
  width: 90%;
  padding: 14px 18px;
  margin-bottom: 25px;
  border-radius: 30px;
  border: 4px solid #615d5d;
  background: transparent;
  font-size: 16px;
  color: white;
  font-weight: 500;
}
.modal-content input::placeholder {
  color: #f0f0f0;
  font-weight: 400;
}
.adminLoginBtn,
.adminSignupBtn {
  width: 100%;
  padding: 14px 18px;
  background: #d9d9d9;
  border: none;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 25px;
  color: black;
}
.adminLoginBtn:hover {
  background: #6e0505;
  color: white;
}
.adminSignupBtn:hover {
  background: #6e0505;
  color: white;
}
.modal-content p {
  color: rgb(255, 0, 0);
  text-align: center;
}
.success-message {
  color: green;
  font-weight: bold;
  margin: 10px 0;
}

/* Admin Dashboard Navigation */
.adminDashHeader {
  position: fixed;
  width: 100%;
  z-index: 9999;
}
.adminDashNav {
  background: #742424;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: white;
  height: 7vh;
}

.adminDashNav p {
  font-size: 20px;
  color: white;
  margin: 0 15px;
}

.adminDashNav a {
  text-decoration: none;
}

.adminDashNav a:hover {
  text-decoration: underline overline;
  color: red;
}

.adminDashNav h1 {
  margin: 0 15px;
}
.adminMenuToggle {
  display: none;
}

/* Layout */
.adminDashContent {
  min-height: 100vh;
  padding-top: 50px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  text-align: center;
  grid-area: sidebar;
  background: linear-gradient(to bottom, rgb(117, 33, 33), rgb(117, 33, 33));
  padding: 20px;
  height: 93vh;
  width: 14%;
}

.sidebar a {
  white-space: nowrap;
  margin-top: 40px;
  display: block;
  font-size: 20px;
  color: rgb(255, 254, 254);
  text-decoration: none;
}

.sidebar a:hover {
  border-radius: 5px;
  transform: scaleX(1.1);
  font-weight: bold;
  background-color: rgba(187, 187, 187, 0.841);
}
/* Home Content */
.content {
  padding-left: 230px;
}
.homeContent {
  padding: 20px;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  align-items: flex-start;
}

.votedStudents {
  background: #f5f5f5;
  width: 100%;
  height: auto;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
}
.addBtn,
.votedStudents h1 {
  text-align: center;
  background: #641d1d;
  color: white;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
}
.votedBox {
  width: 97%;
  margin-left: 1.5%;
}

/* Sections */
.sectionArea {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.section {
  display: none;
}
#defaultContent {
  display: none;
}

/*students lists*/
#students {
  padding: 30px;
}
table {
  width: 90%;
}
.uploadStudents {
  margin-right: 60%;
}
/* Popup Overlay */
#popupOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Common styles for popups */
#customPopup,
#addStudentPopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  width: 400px;
  max-width: 90vw;
  box-sizing: border-box;
}

/* Close buttons for popups */
#closePopup,
#closeAddPopup {
  position: absolute;
  top: 8px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #ff0404;
}
#closePopup:hover,
#closeAddPopup:hover {
  transform: scale(1.2);
  font-weight: bold;
}

/* Form groups */
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #444;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  border-color: #14365a;
  outline: none;
}

/* Submit button */
#popupSubmit {
  background-color: #1c3f64;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

#popupSubmit:hover {
  background-color: #0056b3;
}

.start,
.end {
  font-size: 18px;
}
.date {
  color: green;
  font-weight: bold;
}
.time {
  color: rgb(0, 0, 0);
  font-weight: 700;
  font-style: italic;
}

#countdown {
  font-size: 18px;
  font-weight: bold;
  color: rgb(255, 0, 0);
  margin-top: 10px;
}
.votingStatus {
  padding: 15px;
  text-align: center;
  width: 30%;
  background: #d3d6da;
  border-radius: 10px;
}
.eventArea {
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/*voting form*/
#create {
  width: 100%;
  padding: 20px 0px 0 170px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}
.votingForms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20rem;
}
.endDate {
  margin-top: 40px;
}
.votingPeriodForm {
  background: #d3d6da;
  padding: 10px;
  border-radius: 10px;
  width: 30%;
  height: 46vh;
}
.votingPeriodForm input {
  width: 100%;
  border-radius: 5px;
  padding: 10px;
}
.votingPeriodForm button {
  border-radius: 10px;
  background: blue;
  color: white;
  padding: 5px;
  margin-left: 135px;
  margin-top: 20px;
}
.candidacyPeriodForm {
  background: #d3d6da;
  padding: 10px;
  border-radius: 10px;
  width: 30%;
  height: 46vh;
}
.candidacyPeriodForm input {
  width: 100%;
  border-radius: 5px;
  padding: 10px;
}
.candidacyPeriodForm button {
  border-radius: 10px;
  background: blue;
  color: white;
  padding: 5px;
  margin-top: 20px;
  margin-left: 145px;
}
.addEventForm {
  background: #d3d6da;
}

/*add event form*/
.addEventForm {
  background: #d3d6da;
  padding: 10px;
  border-radius: 10px;
  width: 30%;
}
.addEventForm form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.addEventForm input,
textarea {
  width: 100%;
  border-radius: 5px;
  padding: 5px;
}
.addEventForm button {
  width: 120px;
  border-radius: 10px;
  background: blue;
  color: white;
  padding: 5px;
  margin-left: 125px;
}
/*existing events*/

.events {
  background: linear-gradient(to bottom, white, gray);
  width: 99%;
}
.existingEvents {
  border-radius: 10px;
  width: 97%;
}
.existing-event-form {
  display: block;
  background-color: #f9f9f9;
  border-left: 6px solid #d9534f;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: left;
  gap: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.existing-event-form:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.existing-event-content {
  flex-grow: 1;
}

.existing-event-title {
  padding-left: 6px;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 18px;
}

.existing-event-description {
  padding-left: 6px;
  margin-bottom: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.existing-event-datetime {
  font-size: 14px;
  color: #020202;
}

.existingEventsBtn {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.existingEventsBtn button {
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  color: white;
  padding: 6px 15px;
  cursor: pointer;
  font-size: 15px;
}

.existingEventsBtn button:hover {
  background-color: #0056b3;
}
.existingEvents label {
  font-weight: bold;
  font-size: 16px;
}
.addBtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#eventDesc,
#eventTitle,
#eventStart,
#eventEnd {
  width: 80%;
}
#eventTitle,
#eventStart,
#eventEnd {
  height: 7%;
}
#eventTitle,
#eventStart,
#eventEnd {
  border-radius: 5px;
}
#startLabel,
#endLabel,
#fileLabel {
  display: flex;
  text-align: start;
  margin-top: 15px;
  margin-left: 45px;
}
#eventTitle,
#eventDesc,
#eventStart,
#eventEnd {
  padding-left: 10px;
}
#eventFile {
  width: 80%;
  margin-left: 45px;
}
/*manage admins*/
#changePasswordModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(71, 70, 70, 0.515);
  z-index: 9999;
}
.adminTable {
  width: 98%;
  margin-left: 1%;
}
.manageAdmin {
  margin-top: 20px;
  margin-left: 1%;
}
.addAdminForm {
  position: relative;
  background: #ececec;
  padding: 2px;
  border-radius: 10px;
  width: 30%;
  height: 60vh;
  margin-top: 9%;
}
.addAdminForm input {
  color: black;
  font-weight: bold;
}
.addAdminForm input::placeholder {
  color: rgb(123, 122, 122);
}
.custom-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(178, 178, 178, 0.5);
  z-index: 9999;
}

.close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  font-weight: bold;
}

.close-btn:hover {
  color: red;
}
.inputs {
  padding: 10px;
}
.password-container input {
  color: black;
  font-weight: 700;
}
.password-container {
  position: relative;
  color: rgb(146, 145, 145);
}
.password-container input::placeholder {
  color: #999;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  cursor: pointer;
  color: gray;
  font-size: 18px;
}

.password-toggle:hover {
  color: black;
}
/*student list*/
#students {
  padding: 40px 30px 0 230px;
}
#specializationButtons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-right: 2%;
}
.specialization-btn {
  font-size: 15px;
}
.studentsTable {
  width: 98%;
}
.search {
  margin-right: 25px;
}
.student-divider {
  margin: 30px 0;
  border: none;
  height: 3px;
  background: linear-gradient(to right, transparent, #ff0000, transparent);
}
#addStudentPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 600px;
  max-height: 80vh;
  overflow-y: auto;

  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.editStudentBtn {
  background: rgb(38, 186, 212);
  color: white;
}
.candidacy-profile-pic {
  width: 20%;
  border-radius: 5px;
  margin-top: 5px;
}
.platform-text {
  display: block;
  text-align: left;
}

/*candidates section*/
#candidates {
  padding: 20px 20px 0 220px;
}

.admin-candidates-grid {
  display: block;
}
.position-block {
  margin-bottom: 3rem;
}

.position-block .admin-candidates-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.admin-candidate-card {
  width: 220px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: 0.2s ease;
}
.admin-candidate-card:hover {
  transform: translateY(-5px);
}
.admin-candidate-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1f2933;
}
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.status-badge.approved {
  background-color: #d4edda;
  color: #155724;
}
.status-badge.declined {
  background-color: #f8d7da;
  color: #721c24;
}
.status-badge.pending {
  background-color: #fff3cd;
  color: #856404;
}
.position-title {
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
}

.candidate-popup {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 90%;
  margin-top: 20px;
}

/*officers section*/

#officers {
  padding: 20px 20px 0 220px;
}

/*voting.php*/
.votingPeriod {
  padding-top: 90px;
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
}
.votingStatus {
  padding: 15px;
  text-align: center;
  width: 30%;
  background: #d3d6da;
  border-radius: 10px;
}
.startVoting {
  display: none;
}
.votingBack a {
  background: rgb(55, 232, 241);
  border: none;
}
.votingBack a:hover {
  background: red;
}
/*voting_form.php*/
.votingForm {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.form-check-label {
  white-space: nowrap;
}

/*results.php*/
.electResult {
  padding-top: 5%;
}
.unpublish {
  padding-top: 120px;
}
.notPublished {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  background: #efe5e5;
  height: fit-content;
  width: fit-content;
  font-size: 40px;
  border-radius: 15px;
  font-style: italic;
  padding: 10px;
}
.printBtn {
  margin-left: 55%;
}
#printArea h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4%;
  font-size: 40px;
  font-weight: bold;
}
.resetBtn {
  color: #ff6b6b !important;
}
.winner-card {
  width: 200px;
  transition: 0.3s;
}

.winner-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: auto;
  transition: 0.3s;
}

/* SMALL ICONS */
.small-view .winner-card {
  width: 140px;
}

.small-view .winner-img {
  width: 60px;
  height: 60px;
}

.small-view p {
  font-size: 0.9rem;
}

/* LARGE ICONS */
.large-view .winner-card {
  width: 240px;
}

.large-view .winner-img {
  width: 140px;
  height: 140px;
}

.large-view p {
  font-size: 1.1rem;
}

/* LIST VIEW */
.list-view .winner-card {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 15px;
}

.list-view .winner-img {
  width: 70px;
  height: 70px;
  margin: 0;
}

.list-view .voteCount {
  margin-left: auto;
}
@media print {
  body * {
    visibility: hidden;
  }
  #printArea,
  #printArea * {
    visibility: visible;
  }
  #printArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0 auto;
  }
  #printArea .container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto !important;
    text-align: center;
  }
  #printArea .row {
    justify-content: center !important;
  }
  #printArea .card {
    margin-left: auto;
    margin-right: auto;
  }
  .btn,
  .officerTitle form {
    display: none !important;
  }
  .card {
    page-break-inside: avoid;
    break-inside: avoid;
    width: 50%;
  }

  .position-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  .row {
    display: flex;
    justify-content: center;
  }
  .position-section {
    margin-bottom: 40px;
  }
  .voteCount {
    display: none !important;
  }

  .btn-group,
  .printBtn,
  form {
    display: none !important;
  }
  .table-dark th {
    background: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 2560px) and (min-width: 1920px) {
  .adminTable {
    width: 92%;
    margin-left: 7%;
  }
  .manageAdmin {
    margin-left: 7%;
  }
  .candidatesTable {
    margin-left: 7%;
  }
  .officerTitle {
    margin-left: 7%;
  }
  .votedStudents {
    width: 92%;
    margin-left: 6%;
  }
  .events {
    width: 94%;
    margin-left: 6%;
  }
  .uploadStudents {
    margin-right: 55%;
  }
  .votingPeriodForm button {
    margin-left: 40%;
    margin-top: 12%;
  }
  .candidacyPeriodForm button {
    margin-left: 40%;
    margin-top: 12%;
  }
  .endDate {
    margin-top: 15%;
  }
  .sidebar {
    width: 16%;
    height: 98vh;
  }
  .sidebar a {
    font-size: 25px;
    margin-top: 40px;
  }
  .studentSidebar a {
    font-size: 25px;
    margin-top: 20px;
  }
  .right-box,
  .left-box {
    height: 85vh;
  }
  .right-box p {
    font-size: 35px;
  }
  .right-box img {
    width: 85%;
    height: 50vh;
  }
  .studentsTable {
    margin-left: 7%;
    width: 92%;
  }
  .studentLists {
    margin-left: 7%;
  }
  .main-box {
    margin-top: 8%;
  }
  .adminText ul li {
    margin-bottom: 25px;
    margin-top: 8%;
  }
  .aboutus {
    font-size: 30px;
    line-height: 1.5;
    width: 800px;
  }
  .caption {
    margin: 3% 0 0 62%;
    font-size: 30px;
  }
  .homeWelcome p {
    margin-top: 10%;
  }
  .cards button {
    margin-top: 20%;
  }
  .cards img {
    margin-top: 5%;
  }
}
@media (max-width: 1366px) {
  .votedStudents {
    width: 97%;
  }
  .homeContent {
    padding-left: 10px !important;
  }
  .events {
    width: 98%;
    margin-left: 20px;
  }
  .uploadStudents {
    margin-right: 35%;
  }
  .votingPeriodForm button {
    margin-left: 35%;
    margin-top: 20px;
  }
  .candidacyPeriodForm button {
    margin-left: 40%;
    margin-top: 20px;
  }
  .endDate {
    margin-top: 8%;
  }
  .adminDashContent {
    padding-top: 40px;
  }
  .officerTitle {
    padding-top: 25px;
  }
  .sidebar {
    width: 16%;
  }
  .sidebar a {
    font-size: 18px;
    margin-top: 20px;
  }
  .studentSidebar a {
    font-size: 21px;
    margin-top: 20px;
  }
  .right-box,
  .left-box {
    height: 82vh;
  }
  .right-box p {
    font-size: 30px;
  }
  .right-box img {
    width: 80%;
    height: 40vh;
  }
  .candidatesArea {
    padding-top: 160px;
  }
  #specializationButtons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-right: 2%;
  }
  .specialization-btn {
    font-size: 15px;
  }
}
@media (max-width: 1280px) {
  .uploadStudents {
    margin-right: 50%;
  }
  .votingPeriodForm button {
    margin-left: 105px;
    margin-top: 20px;
  }
  .candidacyPeriodForm button {
    margin-left: 110px;
    margin-top: 20px;
  }
  .endDate {
    margin-top: 25px;
  }
  .sidebar {
    width: 16%;
  }
  .sidebar a {
    font-size: 18px;
  }
}
@media (max-width: 1024px) {
  .homearea {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .homeWelcome h2 {
    font-size: 35px;
    margin: 5px 50px 0 5px;
  }
  .homeWelcome p {
    font-size: 18px;
    margin-right: 35px;
  }
  .aboutus {
    font-size: 20px;
    width: 600px;
    margin: 12px 5px 0 5px;
  }
  .cards {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
    padding: 0 5px 0 5px;
  }
  .cards button {
    font-size: 14px;
  }
  .card1,
  .card2 {
    width: 100%;
    height: 36vh;
  }
  .caption {
    padding: 0 5px 0 5px;
    margin: 3% 1% 0 10%;
  }
  .logoName {
    margin-left: 3px !important;
  }

  .login-box {
    padding: 0px;
    width: 90%;
    height: 50vh;
  }
  .login-box h2 {
    font-size: 30px;
    margin-top: 10px;
  }
  .studentLogin {
    padding: 20px;
  }
  .studentLogin input {
    width: 88%;
  }
  .page-wrapper {
    margin-top: 3%;
  }
  .password-wrapper i {
    right: 35px;
  }

  .welcome {
    font-size: 10px;
    margin-left: 0px;
  }
  .navbar {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 10px;
  }
  .nav-left {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .welcomeProfile {
    margin: 0;
  }
  .welcomeandname img {
    width: 7%;
    height: 7%;
    margin-top: 4px;
  }
  .nav-center {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    white-space: nowrap;
  }
  .amaLogo {
    width: 25px;
    height: 20px;
  }
  .fourBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 5px 0px 5px;
  }
  .right-box {
    height: 45vh;
    width: 90%;
    padding: 5px;
    margin: 20px 0 0 0;
  }
  .right-box p {
    font-size: 20px;
  }
  .right-box img {
    width: 75%;
    height: 25vh;
    padding-top: 10px;
  }
  .left-box {
    height: 55vh;
    width: 90%;
    padding: 5px;
    margin: 20px 0 0 0;
  }
  .left-box p {
    font-size: 20px;
  }
  .studentMenuToggle {
    display: flex;
    position: static;
    z-index: 2000;
    font-size: 20px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }
  .studentSidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    background: rgb(194, 208, 208);
    transition: 0.3s;
    z-index: 1500;
    padding-top: 70px;
  }

  .studentSidebar a {
    display: block;
    padding: 15px 20px;
    color: #393939;
    text-decoration: none;
  }

  .studentSidebar.active {
    left: 0;
  }
}
@media (max-width: 450px) {
  .homearea {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .homeWelcome h2 {
    font-size: 25px;
    margin: 3px 50px 0 5px;
  }
  .homeWelcome p {
    font-size: 18px;
    margin-right: 35px;
  }
  .aboutus {
    font-size: 20px;
    width: 350px;
    margin: 12px 5px 0 5px;
  }
  .cards {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
    padding: 0 5px 0 5px;
  }
  .cards button {
    font-size: 14px;
  }
  .card1,
  .card2 {
    width: 100%;
    height: 36vh;
  }
  .caption {
    padding: 0 5px 0 5px;
    margin: 3% 1% 0 1%;
  }
  .topBar {
    font-size: 20px;
    line-height: 1;
  }
  .login-box {
    padding: 0px;
    width: 90%;
    height: 50vh;
  }
  .login-box h2 {
    font-size: 30px;
    margin-top: 10px;
  }
  .studentLogin {
    padding: 20px;
  }
  .studentLogin input {
    width: 88%;
  }
  .page-wrapper {
    margin-top: 3%;
  }
  .welcome {
    font-size: 10px;
    margin-left: 0px;
  }
  .navbar {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 10px;
  }
  .nav-left {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .welcomeProfile {
    margin: 0;
  }
  .welcomeandname img {
    width: 7%;
    height: 7%;
    margin-top: 4px;
  }
  .nav-center {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    white-space: nowrap;
  }
  .amaLogo {
    width: 25px;
    height: 20px;
  }
  .fourBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 5px 0px 5px;
  }
  .right-box {
    height: 45vh;
    width: 90%;
    padding: 5px;
    margin: 20px 0 0 0;
  }
  .right-box p {
    font-size: 20px;
  }
  .right-box img {
    width: 75%;
    height: 25vh;
    padding-top: 10px;
  }
  .left-box {
    height: 55vh;
    width: 90%;
    padding: 5px;
    margin: 20px 0 0 0;
  }
  .left-box p {
    font-size: 20px;
  }
  .approvedCandidates {
    padding: 50px 5px 0 5px;
  }
  .candidatesArea {
    padding: 50px 5px 0 5px;
  }
  .candidatesArea p {
    font-size: 20px;
  }
  .eventNavbar,
  .votingNavbar {
    position: fixed;
    width: 100%;
    top: 0;
  }
  .votingStatus {
    width: 90%;
    padding: 10px;
  }
  .votingPeriod {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0 5px 0 5px !important;
  }
  .notPublished {
    font-size: 20px;
    padding: 10px;
  }
  .electResult {
    margin-top: 10%;
  }
  .logo {
    height: 30px;
  }
  .logoName {
    margin-top: 17px !important;
  }
  .adminText {
    margin-top: 35%;
  }
  .adminText h1 {
    width: 300px;
  }
  .adminText p,
  .adminText ul li {
    font-size: 20px;
    line-height: 1.5;
  }
  .adminText ul li {
    margin-left: 12%;
  }
  .welcomeAdmin {
    font-size: 30px;
    margin-left: 0px;
  }
  .main-box {
    width: 50%;
    margin: 0 5% 0 5%;
    background: none;
  }
  .main-box img {
    display: none;
  }
  .main-box:hover {
    transform: none;
    box-shadow: none;
  }
  .modal-content {
    width: 80%;
    height: 40vh;
    padding: 5px;
    margin-top: 45%;
    box-shadow: none;
  }
  .modal-content input {
    width: 80%;
    display: flex;
    align-items: center;
    text-align: center;
  }
  .studentMenuToggle {
    display: flex;
    position: static;
    z-index: 2000;
    font-size: 20px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }

  .studentSidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    background: rgb(194, 208, 208);
    transition: 0.3s;
    z-index: 1500;
    padding-top: 70px;
  }

  .studentSidebar a {
    display: block;
    padding: 15px 20px;
    color: #393939;
    text-decoration: none;
  }

  .studentSidebar.active {
    left: 0;
  }
  .adminDashNav h1 {
    display: none;
  }
  .adminDashNav p {
    font-size: 15px;
  }
  .content {
    padding-left: 0;
  }
  .last-login {
    font-size: 15px;
  }
  .homeContent {
    width: 100%;
  }
  .table-dark th {
    font-size: 10px;
  }
  #studentTable tr {
    font-size: 9px;
  }
  .adminMenuToggle {
    margin-left: 20px;
  }
  .adminMenuToggle {
    display: flex;
    position: static;
    z-index: 2000;
    font-size: 20px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    background: rgb(194, 208, 208);
    transition: 0.3s;
    z-index: 1500;
    padding-top: 70px;
  }

  .sidebar a {
    display: block;
    padding: 15px 20px;
    color: #393939;
    text-decoration: none;
  }

  .sidebar.active {
    left: 0;
  }

  .votingForms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 15px !important;
  }
  .votingPeriodForm,
  .candidacyPeriodForm {
    width: 60%;
    height: 30vh;
    font-size: 10px;
    padding: 5% 0 0 0;
  }
  .votingPeriodForm h2,
  .candidacyPeriodForm h2 {
    font-size: 11px;
  }
  .votingPeriodForm input,
  .candidacyPeriodForm input {
    width: 85%;
    height: 20px;
    font-size: 10px;
    padding: 2px;
    margin-left: 7%;
  }
  .votingPeriodForm label,
  .candidacyPeriodForm label {
    margin-left: 7%;
  }
  .votingPeriodForm button,
  .candidacyPeriodForm button {
    width: 38%;
    margin-left: 30%;
    margin-top: 20px;
    font-size: 10px;
    padding: 2px;
  }
  .events {
    width: 95%;
    margin-left: 2%;
  }
  .events h1 {
    font-size: 15px;
    margin-top: 8px;
  }
  .events button {
    font-size: 10px;
    padding: 2px;
    margin-left: 5%;
  }
  .existingEvents {
    width: 95%;
    height: auto;
  }
  .existing-event-form {
    padding: 3% 0 7% 0;
    align-items: left;
    gap: 2px;
  }
  .existing-event-form input {
    width: 88%;
    height: 20px;
    font-size: 10px;
    padding: 2px;
  }
  .existing-event-form textarea {
    width: 88%;
    margin-left: 9%;
  }
  .existing-event-content label {
    font-size: 10px;
  }
  .existing-event-content ul li {
    font-size: 5px;
  }
  .uploadFiles {
    display: flex;
    flex-direction: column;
  }
  .uploadFiles button {
    font-size: 10px;
    width: 30%;
    margin: 2% 0 0 35%;
  }
  .uploadedFile a {
    font-size: 7px;
  }
  .manageAdmin h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .manageAdmin button {
    font-size: 10px;
    padding: 2px;
    margin-left: 5%;
  }
  .adminTable {
    width: 98%;
    font-size: 9px;
  }
  .adminTable button {
    font-size: 9px;
    padding: 2px;
  }
  .candidatesTable p {
    font-size: 16px !important;
  }
  .admin-candidate-card {
    width: 45%;
    font-size: 12px;
  }

  .admin-candidate-avatar {
    width: 60px;
    height: 60px;
  }
  .admin-candidate-card {
    font-size: 12px;
  }
  .admin-candidate-card h6 {
    font-size: 13px;
  }

  .admin-candidate-card small {
    font-size: 11px;
  }
  .admin-action-buttons .btn {
    font-size: 10px;
    padding: 4px;
  }
  .position {
    margin-left: 3%;
  }
  .candidate-popup {
    font-size: 10px;
  }
  .candidate-popup img {
    width: 80px !important;
    height: 80px !important;
  }
  .studentLists {
    margin-left: 2%;
    margin-top: 25px;
  }
  .buttons {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
  }
  .buttons button {
    font-size: 10px;
  }
  .uploadStudents {
    margin-right: 0%;
  }
  .buttons > div:nth-child(1),
  .buttons > div:nth-child(2) {
    flex: 0 0 auto;
  }

  .buttons > div:nth-child(3) {
    flex: 0 0 100%;
  }
  .search input {
    width: 98%;
  }

  #studentsTable {
    font-size: 11px;
  }
  #specializationButtons button {
    font-size: 9px;
  }
  #specializationButtons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }

  #specializationButtons .specialization-btn {
    width: 100%;
    margin: 0 !important; /* overrides Bootstrap's m-1 */
    white-space: normal;
    word-break: break-word;
  }
  .studentsTable {
    width: 100%;
  }
  .editStudentBtn,
  .deleteStudentForm button {
    font-size: 10px;
  }
  .deleteAdminBtn {
    margin-top: 2px;
  }
  .officerTitle {
    margin-left: 3%;
  }
  .officerTitle button {
    font-size: 12px;
    height: 20%;
  }
  .officerTitle h2 {
    font-size: 22px;
  }
  .table-bordered {
    font-size: 9px;
  }
  .card-header h5 {
    font-size: 12px;
  }
  .year-section {
    position: absolute;
    left: 0;
    right: 0;
  }
  .noWinners {
    margin-left: 5px !important;
    margin-right: 5px !important;
  }
  .printBtn {
    margin-left: 2%;
  }
  .deleteStudentForm button {
    margin-top: 2px;
    padding: 2px;
  }
  .editStudentBtn {
    padding: 2px;
  }
}
