/* Global helpers */
.text-white { color: #fff; }
.bg-white   { background-color: #fff; }
.bg-black   { background-color: #0f172a !important; }
.text-black { color: #000; }

.bg-green   { background: linear-gradient(135deg, #1e3c72, #2a5298) !important; }
.text-green { color: #2a5298; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
    margin: 0;
}

/* ============================
   Top header bar (admin/voters)
   ============================ */
.app-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3c72 100%);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}
.app-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6dd5fa, #ff6ec4, #6dd5fa);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.app-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #6dd5fa;
    object-fit: cover;
    background: #fff;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(109, 213, 250, 0.45);
    animation: logoFloat 3.5s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.app-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.app-title small {
    font-weight: 400;
    font-size: 14px;
    opacity: 0.85;
    margin-left: 6px;
}

/* ============================
   Navigation
   ============================ */
.bg-green .navbar {
    padding: 0;
}
.navbar-nav .nav-link {
    position: relative;
    padding: 14px 18px !important;
    font-weight: 500;
    transition: all 0.25s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.08);
}
.navbar-nav .nav-link:hover::after {
    width: 60%;
}

/* ============================
   Tables / cards
   ============================ */
.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    animation: fadeUp 0.5s ease;
}
.table thead th {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    border: none;
    font-weight: 600;
}
.table tbody tr {
    transition: background 0.2s ease;
}
.table tbody tr:hover {
    background: #f1f5f9;
}

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

h3 {
    color: #1e3c72;
    font-weight: 700;
    margin: 18px 0;
}

/* Buttons */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    transition: all 0.25s ease;
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.4);
}

/* Candidate photo */
.candidate_photo {
    width: 80px;
    height: 80px;
    border: 3px solid #2a5298;
    border-radius: 100%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.candidate_photo:hover {
    transform: scale(1.08) rotate(-3deg);
}
