/* =========================================
   RESET & VARIABLES
   ========================================= */
:root {
  --primary: #0a2a5e;
  --primary-light: #1a4b9b;
  --gold: #c9a227;
  --gold-light: #e6c45a;
  --bg: #f0f2f5;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;
  --success: #059669;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(10, 42, 94, 0.08);
  --shadow-hover: 0 8px 32px rgba(10, 42, 94, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.site-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  position: relative;
}

.site-header .subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  font-weight: 400;
  position: relative;
}

.site-header .gold-line {
  width: 80px;
  height: 4px;
  background: var(--gold);
  margin: 20px auto 0;
  border-radius: 2px;
  position: relative;
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   INFO CARD (VOTIM)
   ========================================= */
.votim-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin: -40px auto 32px;
  position: relative;
  box-shadow: var(--shadow);
  max-width: 900px;
}

.votim-info h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.info-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.info-item .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.info-item .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.info-item .value.gold {
  color: var(--gold);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(10, 42, 94, 0.25);
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-gold {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* =========================================
   KANDIDATET
   ========================================= */
.kandidatet {
  padding: 40px 0;
}

.kandidatet h2 {
  font-size: 1.8rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.kandidat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kandidat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.kandidat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.kandidat-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 4px solid var(--bg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 16px;
  border: 4px solid var(--bg);
  box-shadow: 0 4px 14px rgba(10, 42, 94, 0.2);
}

.kandidat-card h3 {
  font-size: 1.2rem;
  margin: 8px 0 4px;
  color: var(--text);
}

.pozita {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.slogan {
  font-style: italic;
  color: var(--primary);
  font-size: 0.95rem;
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(10, 42, 94, 0.05);
  border-radius: 8px;
}

/* =========================================
   LOGIN
   ========================================= */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.login-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h1 {
  font-size: 1.6rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}

.login-box .login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.login-box label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.login-box input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.login-box .btn {
  width: 100%;
  margin-top: 24px;
}

.login-box .back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.login-box .back-link:hover {
  color: var(--primary);
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: center;
}

/* =========================================
   TABELA E ANËTARËVE
   ========================================= */
.table-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 24px auto;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

th:first-child { border-radius: 10px 0 0 0; }
th:last-child { border-radius: 0 10px 0 0; }

tr:nth-child(even) td { background: #f9fafb; }
tr:hover td { background: #f0f4ff; }

/* =========================================
   KOLONA FORM
   ========================================= */
.kolona-form {
  max-width: 900px;
  margin: 0 auto 24px;
}

.kolona-form fieldset {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}

.kolona-form legend {
  font-weight: 700;
  color: var(--primary);
  padding: 0 12px;
  font-size: 1.05rem;
}

.kolona-check {
  display: inline-flex;
  align-items: center;
  margin: 8px 20px 8px 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.kolona-check input {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.kolona-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================
   HEADER I BRENDSHËM (PËR LISTËN)
   ========================================= */
.dashboard-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 32px 24px;
  text-align: center;
}

.dashboard-header h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.dashboard-header p {
  opacity: 0.9;
  font-size: 1rem;
}

.dashboard-header .btn-group {
  margin-top: 20px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 40px;
}

/* =========================================
   PRINT
   ========================================= */
.print-title, .print-date { display: none; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .print-title, .print-date { display: block; text-align: center; }
  .print-title { font-size: 1.4rem; margin-bottom: 8px; }
  .print-date { font-size: 0.9rem; color: #666; margin-bottom: 20px; }
  .table-container { box-shadow: none; padding: 0; }
  table { font-size: 11px; }
  th { background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; }
  tr:nth-child(even) td { background: #f5f5f5 !important; -webkit-print-color-adjust: exact; }
  th, td { padding: 6px 8px; border: 1px solid #ccc; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  .site-header { padding: 32px 16px; }
  .site-header h1 { font-size: 1.6rem; }
  .votim-info { padding: 24px; margin-top: -20px; }
  .login-box { padding: 32px 24px; }
  .btn { padding: 12px 20px; font-size: 0.95rem; }
  .grid { grid-template-columns: 1fr; }
}
