body.custom-theme {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Matching login gradient */
  color: #333;
  font-family: 'Segoe UI', sans-serif;
}

.navbar {
  background-color: #4e73df !important; /* Primary blue */
  border: none;
}

.navbar .navbar-brand,
.navbar-nav > li > a {
  color: #fff !important;
}

.content-wrapper {
  background-color: #fff;
  padding: 30px; /* Increased for better spacing */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Matching login shadow */
  margin: 20px 0;
}

.box {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.box-header {
  background: #4e73df; /* Matching login logo blue */
  color: white;
  border-radius: 8px 8px 0 0;
  padding: 15px;
  font-weight: bold;
  font-size: 18px;
}

.box-body {
  padding: 20px;
  background: white;
}

#candidate_list ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#candidate_list li {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 15px;
  width: 220px;
  text-align: center;
  background-color: #f9fbfd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  cursor: pointer; /* Change cursor to pointer on hover */
}

#candidate_list li:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#candidate_list img.clist {
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid #ced4da;
}

.btn {
  border-radius: 4px;
  font-weight: 600;
  padding: 10px;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background: #4e73df;
  border-color: #4e73df;
}

.btn-primary:hover {
  background: #2e59d9;
}

.btn-success {
  background: #4e73df; /* Align reset button to theme */
  border-color: #4e73df;
}

.btn-success:hover {
  background: #2e59d9;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.mt20 {
  margin-top: 20px;
}

.title {
  font-size: 50px;
}

#candidate_list {
  margin-top: 20px;
}

#candidate_list ul {
  list-style-type: none;
}

#candidate_list ul li {
  margin: 0 30px 30px 0;
  vertical-align: top;
}

.clist {
  margin-left: 20px;
}

.cname {
  font-size: 25px;
}

.votelist {
  font-size: 17px;
}

/* Override AdminLTE skin colors to match login blue theme */
.skin-blue .main-header .navbar {
  background-color: #4e73df !important;
}

.skin-blue .main-header .logo {
  background-color: #3859a8 !important;
}

.skin-blue .sidebar-menu > li.active > a {
  background-color: #2e59d9 !important;
}

/* Remove hover effect from user menu and other navbar items */
.nav.navbar-nav > li > a:hover,
.nav.navbar-nav > li > a:focus,
.nav.navbar-nav > li.open > a,
.nav.navbar-nav > li .dropdown-menu > li > a:hover,
.nav.navbar-nav > li .dropdown-menu > li > a:focus,
.user.user-menu > a:hover,
.user.user-menu > a:focus,
.user.user-menu.open > a,
.user.user-menu .dropdown-menu > li > a:hover,
.user.user-menu .dropdown-menu > li > a:focus {
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: none !important;
}