/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Background & Body */
body {
    background: linear-gradient(135deg, #1f2c36, #3e4e5e);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Page */
.login-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00ff88;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background: #111;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
}

.form-input:focus {
    background: #222;
    outline: none;
    box-shadow: 0 0 10px #00ff88;
}

/* Buttons */
.cyber-button {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    border: none;
    padding: 12px 20px;
    font-size: 1.2rem;
    color: #000;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 255, 136, 0.3);
}

.cyber-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.6s ease-in-out;
}

.modal-content {
    background: #333;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    animation: popIn 0.4s ease-out;
}

.modal-content h3 {
    font-size: 1.5rem;
    color: #fff;
}

.modal-content button {
    margin: 10px;
    background: #00ccff;
    color: #000;
    border-radius: 12px;
    padding: 10px 25px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.modal-content button:hover {
    background: #00ff88;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Navigation */
.nav-container {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-brand {
    font-size: 1.8rem;
    color: #00ff88;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Voting Page */
.vote-section {
    text-align: center;
    padding: 50px 0;
}

.candidate-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    margin: 15px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
    transition: 0.3s;
    cursor: pointer;
}

.candidate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.candidate-card h3 {
    margin: 10px 0;
    color: #fff;
}

.candidate-card p {
    color: #ccc;
}

/* Results Page */
.results-section {
    padding: 40px;
    text-align: center;
}

canvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

/* Admin Dashboard */
.admin-section {
    text-align: center;
    padding: 40px 0;
}

.auth-form input {
    padding: 15px;
    margin: 15px 0;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 1.2rem;
    border: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
}

.auth-form input:focus {
    background: #222;
    outline: none;
    box-shadow: 0 0 10px #00ff88;
}

.auth-form button {
    padding: 12px 20px;
    font-size: 1.3rem;
    color: #000;
    background: #00ccff;
    border-radius: 12px;
    transition: 0.3s ease-in-out;
}

.auth-form button:hover {
    background: #00ff88;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

/* Logout Page */
.logout-container {
    text-align: center;
    padding: 50px 0;
}

.logout-container h1 {
    font-size: 2rem;
    color: #00ff88;
}

.logout-container .cyber-button {
    margin-top: 20px;
    padding: 15px 25px;
    background: #00ff88;
    color: #000;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 255, 136, 0.3);
    transition: 0.3s ease;
}

.logout-container .cyber-button:hover {
    background: #00ccff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.vote-section, .results-section {
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.candidate-card {
    background-color: #333;
    border: 2px solid #555;
    border-radius: 10px;
    margin: 20px;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.candidate-card:hover {
    background-color: #444;
    transform: scale(1.05);
}

.candidate-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.candidate-card p {
    font-size: 1em;
    margin-bottom: 0;
}

.cyber-button {
    background-color: #00ccff;
    color: #121212;
    font-size: 1.2em;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.cyber-button:hover {
    transform: scale(1.1);
}

.results-section {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
}

