@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");

html,
body {
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  /* padding-top: 56px; */
  font-size: 15px;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 15px;
  margin: auto;
}

.ui-autocomplete {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

#input-balon::placeholder {
  color: #cccccc;
  font-size: 11pt;
}

#input-balon:focus::placeholder {
  color: transparent;
}

.fa,
.fa-brands,
.fa-classic,
.fa-regular,
.fa-sharp,
.fa-solid,
.fab,
.far,
.fas {
  line-height: inherit !important;
}

/* login */
/* .form-signin {
   width: 100%;
   max-width: 600px;
   padding: 15px;
   margin: auto;
} */

.form-signin label {
  font-weight: normal !important;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin #floatingInput {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* MENU
 * *****************************************
 */
#menu .list-menu {
  cursor: pointer;
  opacity: 0.9;
}

#menu .list-menu.active {
  opacity: 1;
}

#menu .list-menu.active h1 {
  font-weight: bold;
}
#menu .list-menu.active .bg-icon-menu {
  background-color: rgba(0, 0, 0, 0.5);
}

#menu .list-menu.active .icon {
  color: #ffffff !important;
  transform: rotate(-10deg) scale(1.5);
}

#menu .icon {
  transition: linear 0.2s;
}

#menu .list-menu:hover .icon {
  transform: rotate(-10deg) scale(1.5);
  /* color: rgba(255, 255, 255, 0.9); */
}

#menu .list-menu:hover h1 {
  font-weight: bold !important;
}

#menu .list-menu:hover {
  /* border: 3px solid #f00 !important; */
  /* border-width: 3px solid inherit; */
  opacity: 1;
}

.bg-icon-menu {
  background-color: rgba(0, 0, 0, 0.15);
  width: 80px;
  height: 70px;
  overflow: hidden;
}

.ui-autocomplete {
  position: absolute;
  cursor: default;
  z-index: 1061 !important;
}

.widget-user .widget-user-image {
  left: 20% !important;
}

.table-pemilih tbody td {
  padding: 1px 3px !important;
}
.widget-user .widget-user-username,
.widget-user-2 .widget-user-username {
  font-size: 20px;
  font-weight: bold;
}

/* Base Styles */
:root {
  --primary: #4361ee;
  --secondary: #6c757d;
  --success: #2ecc71;
  --info: #00b4d8;
  --warning: #f39c12;
  --danger: #e74c3c;
  --light: #f8f9fa;
  --dark: #343a40;
  --indigo: #6610f2;
  --teal: #20c997;
}

/* Login Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
}

.input-with-icon input {
  padding-left: 45px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  height: 48px;
  transition: all 0.3s;
}

.input-with-icon input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover {
  background: #3a56d4;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

/* Dashboard Menu */
.dashboard-menu {
  padding: 20px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.menu-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.menu-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.menu-content h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
}

.menu-content p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

/* Info Card */
.info-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.profile-header {
  background: linear-gradient(135deg, var(--warning), #f6b93b);
  padding: 30px;
  color: white;
  position: relative;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h3 {
  margin: 0 0 8px 0;
  font-size: 24px;
}

.role {
  opacity: 0.9;
  margin-bottom: 12px;
}

.contact-link {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stats-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card.highlight {
  background: linear-gradient(135deg, var(--primary), #4361ee);
  color: white;
}

.stat-icon {
  font-size: 24px;
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
}

.stat-note {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

/* Results */
.results-container {
  padding: 20px;
}

.results-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.results-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.results-title {
  padding: 24px;
  background: linear-gradient(135deg, var(--info), #00b4d8);
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
}

.title-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.results-list {
  padding: 20px;
}

.result-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
  gap: 16px;
}

.result-item:last-child {
  border-bottom: none;
}

.rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.candidate-details {
  flex: 1;
}

.candidate-details .name {
  font-weight: 600;
  margin-bottom: 2px;
}

.candidate-details .id {
  font-size: 14px;
  color: var(--secondary);
}

.votes {
  text-align: right;
}

.vote-count {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .results-section {
    grid-template-columns: 1fr;
  }
}
