.input-search{
  border-radius: 10px !important;
  font-size: 3rem !important;
  text-align: center;
}

.div-search{
  padding-top: 25px;
  padding-bottom: 10px;
  padding-left: 5px;
  padding-right: 5px;  
}
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Voting Container */
.voting-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header */
.voting-header {
  background: linear-gradient(135deg, #4169e1 0%, #1e3a8a 100%);
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.header-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

/* Main Content */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Candidates Section */
.candidates-section {
  flex: 1;
  overflow-y: auto;
  background-color: #ffffff;
}

.selection-text {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.selected-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4169e1;
  margin-top: 0.5rem;
}

/* Candidate Card */
.candidate-card {
  display: flex;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 150px;
  padding-bottom: 5px !important;
}

.candidate-card:hover {
  border-color: #4169e1;
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
  transform: translateY(-2px);
}

.candidate-card.selected {
  background-color: #f0fdf4;
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.candidate-image-wrapper {
  position: relative;
  width: 120px;
  flex-shrink: 0;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.candidate-image {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 10px;
}

.checkmark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(34, 197, 94, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.checkmark-icon {
  width: 80px;
  height: 80px;
  color: white;
  stroke-width: 3;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.candidate-info {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.candidate-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-weight: bold !important;
}

.candidate-delegation {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.candidate-number {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  color: #4169E1;
  line-height: 1;
  transition: color 0.3s ease;
}

.candidate-number.selected {
  color: #22c55e;
}

.candidate-number-H {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  color: #4169E1;
  line-height: 1;
  transition: color 0.3s ease;
}

.candidate-number-H.selected {
  color: #22c55e;
}

.candidate-number-M {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  color: #e91e8c;
  line-height: 1;
  transition: color 0.3s ease;
}

.candidate-number-M.selected {
  color: #e91e8c;
}

/* Keypad Section */
.keypad-section {
  width: 400px;
  flex-shrink: 0;
  background-color: #f9fafb;
  border-left: 1px solid #e5e7eb;
  padding: 2rem;
  overflow-y: auto;
}

.keypad-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.keypad-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Candidate Preview Styles */
.candidate-preview {
  background-color: rgba(65, 105, 225, 0.05);
  border: 2px solid #4169e1;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.preview-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preview-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4169e1;
  flex-shrink: 0;
}

.preview-info {
  flex: 1;
}

.preview-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.preview-number {
  font-size: 2rem;
  font-weight: 800;
  color: #4169e1;
  margin: 0;
  line-height: 1;
}

.keypad-display-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.btn-clear {
  height: 75px !important;
  font-size: 15px;
  border: solid 2px red;
  background-color: white !important;
  border-radius: 10px;
  color: red;      
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-clear:hover {
  background-color: #b91c1c;
}

.keypad-display {
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  min-width: 80px;
}

.btn-select {
  /*background-color: #22c55e;*/
  background-color: white;
  color: white;
  border: solid 2px #22c55e;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  height: 75px !important;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-select:hover:not(:disabled) {
  background-color: #F2F2F2;
  color:white !important;
}

.btn-select:disabled {
  background-color: #F2F2F2;
  cursor: not-allowed;
  color:white !important;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.keypad-btn {
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 3rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 5px;
}

.keypad-btn:hover {
  background-color: #f3f4f6;
  border-color: #4169e1;
  transform: scale(1.05);
}

.keypad-btn:active {
  transform: scale(0.95);
}

.keypad-btn-zero {
  grid-column: 1 / -1;
}

.keypad-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-cancel-vote {
  background-color: #dc2626 !important;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1.8rem;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  height: 6.7rem !important;
  transition: background-color 0.2s;
}

.btn-cancel-vote:hover {
  background-color: #7f1d1d;
}

.btn-continue {
  background-color: #16a34a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1.8rem;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  height: 6.7rem !important;
  transition: background-color 0.2s;
}

.btn-continue:hover {
  background-color: #15803d;
}

/* Footer */
.voting-footer {
  flex-shrink: 0;
  background-color: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.footer-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: #4b5563;
  margin: 0;
}

.statistics {
  display: flex;
  gap: 1rem;
  margin-left: 15px;
  margin-right: 15px;
  height: 6.7rem !important;
}

.stat-box {
  border-radius: 8px;
  padding: 0.75rem 2rem;
  text-align: center;
  min-width: 200px;
}

.stat-women {
  border-color: #e91e8c;
  border: solid 2px #e91e8c;
  color: #e91e8c;
}

.stat-men {  
  border-color: #00a8e8;
  border: solid 2px #00a8e8;
  color: #00a8e8; 
}

.stat-number { 
  font-size: 3rem !important;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .keypad-section {
    width: 350px;
  }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .keypad-section {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .candidate-card {
    height: auto;
    min-height: 120px;
  }

  .candidate-image-wrapper {
    width: 120px;
  }
}

.pb-10{
  padding-bottom: 10px !important;
}

.plr-5{
  padding-left: 5px;
  padding-right: 5px;
}

/* Candidate Card */
.candidate-card-search {
  display: flex;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100px;
  padding-bottom: 5px !important;
}

.candidate-name-search {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-weight: bold !important;
}

/* Limit Modal Styles */
.limit-modal {
  border-radius: 25px;
  border: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.limit-modal .modal-body {
  padding: 2rem;
}

.limit-modal-icon {
  width: 8rem;
  height: 8rem;
  background-color: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.limit-modal-icon i {
  font-size: 7rem;
  color: #d97706;
}

.limit-modal-title {
  font-weight: bold !important;
  color: #111827;
  margin-bottom: 0.75rem;
}

.limit-modal-text {
  font-size: 30px;
  color: #374151;
  line-height: 1.6;
}

.btn-modal-close {
  background-color: #4169e1;
  color: white;
  border: solid 1px #4169e1 !important;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-size: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 90%;
  height: 65px;
}

.btn-modal-close:hover {
  background-color: #1e3a8a;
}

/* Cancel Vote Modal Styles */
.cancel-vote-modal {
  border-radius: 25px;
  border: 4px solid #dc2626;
  box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.3), 0 10px 10px -5px rgba(220, 38, 38, 0.2);
}

.cancel-vote-modal .modal-body {
  padding: 2rem;
}

.cancel-modal-icon {
  width: 7rem;
  height: 7rem;
  background-color: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
}

.cancel-modal-icon i {
  font-size: 7rem;
  color: #dc2626;
}

.cancel-modal-title {
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 1rem;
}

.cancel-modal-question {
  font-size: 30px;
  font-weight: 600;
  color: #111827;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.cancel-modal-warning {
  font-size: 25px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-modal-cancel {
  background-color: white !important;
  color: #374151;
  border-color: black !important;
  /* border: none; */
  /* border-radius: 0.5rem; */
  padding: 0.75rem 1.5rem;
  font-size: 25px;
  height: 65px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 10px !important;
  width: 200px;
}

.btn-modal-cancel:hover {
  background-color: #d1d5db;
}

.btn-modal-confirm {
  background-color: #dc2626;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 25px;
  height: 65px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 200px;
}

.btn-modal-confirm:hover {
  background-color: #b91c1c;
}

/* Modal backdrop animation */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: scale(0.8);
}

.modal.show .modal-dialog {
  transform: scale(1);
}

.limitModalLabel{
  border: solid 2px #1e3a8a !important;
  border-radius: 25px !important;
}

.modal-backdrop {
  background-color: #393939 !important;
}

.link-nohover{
  cursor: pointer;
  text-decoration: none;
}

.link-nohover:hover {
  text-decoration: none; /* Adds underline on hover */
}

.btn-nav-vote {
  background-color: #00a8e8 !important;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1.8rem;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  float: left;
  width: 20%;
  height: 6.7rem !important;
  transition: background-color 0.2s;
}

.btn-nav-vote:hover {
  background-color: #5db2ff;
  color: white;
}

.float-left{
  float: left;
}