/* Modern Voting System - Voter Interface Styling */

/* Global Styles */
body {
  font-family: 'Poppins', 'Source Sans Pro', sans-serif;
  background-color: #f5f7fa;
  color: #2c3e50;
}

/* Login Page Styles */
.login-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-box {
  width: 400px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.login-logo {
  background-color: #fff;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #f1f1f1;
}

.login-logo img {
  height: 80px;
  margin-bottom: 15px;
}

.login-logo b {
  display: block;
  font-size: 24px;
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 5px;
}

.login-subtitle {
  display: block;
  font-size: 14px;
  color: #7f8c8d;
}

.login-box-body {
  padding: 30px;
}

.login-box-msg {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 25px;
  text-align: center;
  color: #2c3e50;
}

.form-control {
  height: 45px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-shadow: none;
  font-size: 15px;
  padding: 10px 15px;
  margin-bottom: 15px;
}

.form-control:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.form-control-feedback {
  line-height: 45px;
  color: #95a5a6;
}

.has-feedback .form-control {
  padding-right: 42.5px;
}

.btn {
  border-radius: 6px;
  font-weight: 600;
  padding: 12px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  background-color: #c0392b;
  border-color: #c0392b;
}

.btn-flat {
  border-radius: 6px;
}

.mt20 {
  margin-top: 20px;
}

/* Alert Messages */
.alert {
  border-radius: 6px;
  padding: 15px 20px;
  margin-top: 20px;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  animation: slideInDown 0.5s ease-out forwards;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-danger {
  background-color: #feeeed;
  color: #c0392b;
  border-left: 4px solid #e74c3c;
}

.alert-success {
  background-color: #e8f8f0;
  color: #27ae60;
  border-left: 4px solid #2ecc71;
}

.alert p {
  margin: 0;
}

.alert .close {
  color: inherit;
  opacity: 0.7;
  font-size: 18px;
}

.alert .close:hover {
  opacity: 1;
}

/* Home Page Styles */
.layout-top-nav .wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-top-nav .content-wrapper {
  flex: 1;
  background-color: #f5f7fa;
}

.page-header {
  margin: 20px 0 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  color: #2c3e50;
}

.title {
  font-weight: 700;
  letter-spacing: 1px;
  color: #e74c3c;
}

/* Ballot Styling */
.box {
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  margin-bottom: 20px;
}

.box-solid {
  border: none;
}

.box-header {
  padding: 15px 20px;
  border-bottom: 1px solid #f1f1f1;
}

.box-header .box-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.box-body {
  padding: 20px;
}

#candidate_list {
  margin-top: 20px;
}

#candidate_list ul {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#candidate_list ul li {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: calc(33.33% - 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#candidate_list ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.clist {
  margin: 10px 0;
}

img.clist {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f1f1;
}

.cname {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

.platform {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  font-size: 12px;
}

/* Voting Buttons */
.btn-success {
  background-color: #2ecc71;
  border-color: #2ecc71;
}

.btn-success:hover, 
.btn-success:focus, 
.btn-success:active {
  background-color: #27ae60;
  border-color: #27ae60;
}

/* Preview Modal */
.modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #f1f1f1;
  padding: 15px 20px;
}

.modal-title {
  font-weight: 600;
  color: #2c3e50;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #f1f1f1;
  padding: 15px 20px;
}

.votelist {
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.votelist:last-child {
  border-bottom: none;
}

/* Footer */
.main-footer {
  background-color: #fff;
  padding: 15px;
  color: #7f8c8d;
  border-top: 1px solid #f1f1f1;
  text-align: center;
  font-size: 14px;
}

.main-footer strong {
  color: #2c3e50;
  font-weight: 600;
}

.main-footer a {
  color: #e74c3c;
}

/* iCheck customization */
.icheckbox_flat-green, 
.iradio_flat-green {
  margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .login-box {
    width: 90%;
  }
  
  #candidate_list ul li {
    width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  #candidate_list ul li {
    width: 100%;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 14px;
  }
} 

/* Navbar Styling */
.navbar.navbar-static-top {
  background-color: #e74c3c;
  border-color: #c0392b;
}

.navbar-brand {
  color: #fff !important;
  font-weight: 600;
}

.navbar-brand b {
  font-weight: 700;
}

.navbar-nav > li > a {
  color: #fff !important;
  transition: all 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.navbar-toggle {
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggle .icon-bar {
  background-color: #fff;
}

.user-image {
  border: 2px solid rgba(255, 255, 255, 0.3);
} 