/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #e0e7ff 100%);
  min-height: 100vh;
}

/* Utility Classes */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-destructive {
  background: #ef4444;
  color: white;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-description {
  color: #6b7280;
  font-size: 0.875rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.badge-secondary {
  background: #f3f4f6;
  color: #374151;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  min-width: 300px;
  border-left: 4px solid #3b82f6;
  animation: slideIn 0.3s ease;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.success {
  border-left-color: #10b981;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-description {
  color: #6b7280;
  font-size: 0.875rem;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Face Authentication Styles */
.face-auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.camera-container {
  position: relative;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

#face-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.face-guide {
  width: 200px;
  height: 200px;
  border: 3px solid #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: #10b981;
    transform: scale(1);
  }
  50% {
    border-color: #3b82f6;
    transform: scale(1.05);
  }
}

.face-status {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.face-status i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.face-status p {
  font-size: 0.875rem;
  margin: 0;
}

.face-instructions h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.face-instructions ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.face-instructions li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.face-instructions li i {
  color: #10b981;
  font-size: 1rem;
}

.face-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.face-progress {
  text-align: center;
  padding: 2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  width: 0%;
  transition: width 0.3s ease;
  animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
  0%,
  100% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
}

.face-status.success {
  background: rgba(16, 185, 129, 0.9);
}

.face-status.error {
  background: rgba(239, 68, 68, 0.9);
}

.face-status.processing {
  background: rgba(59, 130, 246, 0.9);
}

/* Face Registration in Registration Form */
.face-registration-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.face-preview-container {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.face-preview-container i {
  font-size: 1.5rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.face-preview-container p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  text-align: center;
}

.face-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-preview-container.registered {
  background: linear-gradient(135deg, #10b981, #059669);
}

.face-preview-container.registered i {
  color: white;
}

.face-preview-container.registered p {
  color: white;
}

.face-preview-container.registered::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .face-registration-preview {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Auth Screen */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.auth-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-decoration {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(40px);
  opacity: 0.2;
  animation: pulse 4s ease-in-out infinite;
}

.bg-decoration-1 {
  top: -10rem;
  right: -10rem;
  width: 20rem;
  height: 20rem;
  background: #3b82f6;
}

.bg-decoration-2 {
  bottom: -10rem;
  left: -10rem;
  width: 20rem;
  height: 20rem;
  background: #8b5cf6;
}

.bg-decoration-3 {
  top: 10rem;
  left: 10rem;
  width: 15rem;
  height: 15rem;
  background: #6366f1;
}

.auth-container {
  width: 100%;
  max-width: 32rem;
  position: relative;
  z-index: 10;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-header .logo {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.auth-header .logo i {
  font-size: 2.5rem;
  color: white;
}

.auth-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #64748b;
}

.tagline {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}

.tab-btn.active {
  background: white;
  color: #1e40af;
  box-shadow: 0 -2px 0 #3b82f6;
}

.auth-form {
  padding: 2rem;
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.demo-credentials {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #dbeafe;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1e40af;
}

/* Main App */
.main-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-left .logo {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.header-left .logo i {
  font-size: 1.5rem;
  color: white;
}

.app-title h1 {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-title p {
  font-size: 0.875rem;
  color: #6b7280;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.user-avatar i {
  color: white;
  font-size: 1rem;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar.face-verified::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
}

.user-details .username {
  font-weight: 600;
  font-size: 0.875rem;
}

.user-role {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  text-transform: uppercase;
  font-weight: 600;
}

.dashboard-content {
  flex: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Dashboard Styles */
.dashboard-header {
  text-align: center;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  color: #6b7280;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
  color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card.blue {
  --gradient-from: #3b82f6;
  --gradient-to: #1d4ed8;
}

.stat-card.green {
  --gradient-from: #10b981;
  --gradient-to: #059669;
}

.stat-card.purple {
  --gradient-from: #8b5cf6;
  --gradient-to: #7c3aed;
}

.stat-card.orange {
  --gradient-from: #f59e0b;
  --gradient-to: #d97706;
}

.stat-info h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-info p {
  opacity: 0.8;
  font-size: 0.875rem;
}

.stat-icon {
  font-size: 2rem;
  opacity: 0.8;
}

/* Tabs */
.tabs {
  margin-bottom: 1.5rem;
}

.tab-list {
  display: flex;
  background: white;
  border-radius: 0.5rem;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.tab-trigger {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.tab-trigger.active {
  background: #3b82f6;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Lists and Items */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.list-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.item-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.item-info p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  border-radius: 1rem;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
}

.close:hover {
  color: #374151;
}

.modal-body {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Profile Photo Upload */
.photo-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.photo-preview {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-preview i {
  font-size: 2.5rem;
  color: white;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-controls {
  flex: 1;
}

.photo-controls input[type="file"] {
  display: none;
}

.photo-controls .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.help-text {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Results Display */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.result-candidate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.position-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.875rem;
}

.position-1 {
  background: #fbbf24;
}
.position-2 {
  background: #9ca3af;
}
.position-3 {
  background: #fb923c;
}
.position-other {
  background: #d1d5db;
  color: #374151;
}

.result-votes {
  text-align: right;
}

.vote-count {
  font-size: 1.125rem;
  font-weight: bold;
}

.vote-label {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

/* Form Elements */
.form-group label input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  margin-bottom: 0;
}

.form-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Button Groups */
.item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.item-actions .btn {
  white-space: nowrap;
}

/* Confirmation styles */
.btn-destructive:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }

  .user-details {
    display: none;
  }

  .dashboard-content {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tab-list {
    flex-direction: column;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 2% auto;
    width: 95%;
  }

  .photo-upload {
    flex-direction: column;
    text-align: center;
  }

  .face-auth-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .camera-container {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* PWA Features */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.pwa-install-content i {
  font-size: 2rem;
}

.pwa-install-text h4 {
  margin: 0;
  font-size: 1rem;
}

.pwa-install-text p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.pwa-install-actions {
  display: flex;
  gap: 0.5rem;
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-left: 4px solid #3b82f6;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: slideInRight 0.3s ease;
}

.notification-vote-cast {
  border-left-color: #10b981;
}

.notification-election-update {
  border-left-color: #f59e0b;
}

.notification-system {
  border-left-color: #ef4444;
}

.notification-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.notification-content p {
  margin: 0 0 0.25rem 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.notification-content small {
  font-size: 0.625rem;
  color: #9ca3af;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  line-height: 1;
}

.notification-indicator {
  background: #ef4444;
  color: white;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.notification-indicator:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.notification-item.unread {
  background: #f0f9ff;
  border-left: 3px solid #3b82f6;
}

.notification-item.read {
  opacity: 0.7;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.notification-header h4 {
  margin: 0;
  font-size: 0.875rem;
}

.notification-header small {
  color: #6b7280;
  font-size: 0.75rem;
}

/* Vote Confirmation Styles */
.vote-receipt {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1rem 0;
}

.receipt-header {
  text-align: center;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.receipt-header h3 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.receipt-id {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #64748b;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
}

.receipt-details {
  margin: 1rem 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dotted #cbd5e1;
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row .label {
  font-weight: 600;
  color: #475569;
}

.receipt-row .value {
  color: #1e293b;
}

.receipt-row .value.verified {
  color: #059669;
  font-weight: 600;
}

.receipt-footer {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.875rem;
}

.receipt-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

/* None of the Above Styles */
.none-of-above-option {
  border-style: dashed !important;
  opacity: 0.8;
}

.none-of-above-option:hover {
  opacity: 1;
  background: #f3f4f6 !important;
}

.none-of-above-option h4 {
  color: #6b7280;
}

/* Candidate Profile Styles */
.candidate-profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.candidate-basic-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.candidate-avatar {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-avatar i {
  color: white;
  font-size: 1.5rem;
}

.face-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-verified-badge i {
  font-size: 0.5rem;
  color: white;
}

.candidate-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.candidate-details p {
  margin: 0.25rem 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.candidate-bio,
.candidate-achievements,
.candidate-elections,
.candidate-contact {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
}

.candidate-bio h4,
.candidate-achievements h4,
.candidate-elections h4,
.candidate-contact h4 {
  margin: 0 0 0.75rem 0;
  color: #1e293b;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.election-participation {
  background: white;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid #3b82f6;
}

.election-participation:last-child {
  margin-bottom: 0;
}

.election-participation h5 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.election-participation p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: #64748b;
}

/* QR Code Styles */
.qr-container {
  text-align: center;
  padding: 1rem;
}

.qr-code-placeholder {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  color: #64748b;
}

.qr-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .vote-receipt {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
  }

  .receipt-header h3 {
    color: #f1f5f9;
  }

  .receipt-id {
    background: #334155;
    color: #cbd5e1;
  }

  .receipt-row .label {
    color: #cbd5e1;
  }

  .receipt-row .value {
    color: #f1f5f9;
  }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .pwa-install-banner {
    padding: 0.75rem;
  }

  .pwa-install-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .notification-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }

  .candidate-basic-info {
    flex-direction: column;
    text-align: center;
  }

  .receipt-actions {
    flex-direction: column;
  }

  .qr-actions {
    flex-direction: column;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
