/* General Body & Theme using EEESE Palette */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #0E1720;
    /* Dark Blue/Black */
    color: #E8EAEA;
    /* Light Gray */
    margin: 0;
    padding: 0;
    /* Changed padding to 0 */
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centers children horizontally */
    margin-bottom: 20px;
}

.site-header .logo {
    width: 100px;
    /* adjust size as needed */
    margin-bottom: 10px;
}

.site-header .banner {
    width: 80%;
    /* or any width you want */
    max-width: 600px;
    /* optional limit */
    height: auto;
}


.container {
    width: 100%;
    max-width: 500px;
    background-color: #1a2634;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin: 40px auto;
    /* Adds space from the header and centers the box */
}

/* Header & Title inside the container */
.header {
    margin-bottom: 30px;
    border-bottom: 2px solid #00AEEF;
    padding-bottom: 20px;
}

.header h1 {
    color: #00AEEF;
    /* Bright Blue */
    margin: 0;
    font-size: 24px;
}

.header p {
    color: #E8EAEA;
    margin: 5px 0 0;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #E8EAEA;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #0E1720;
    color: #E8EAEA;
    font-size: 16px;
    box-sizing: border-box;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-primary {
    background-color: #00AEEF;
    /* Bright Blue */
    color: #0E1720;
}

.btn-primary:hover {
    background-color: #0095c7;
}

.btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    color: #aaa;
}

.btn:active {
    transform: scale(0.98);
}

/* Status Messages & Popups */
#message {
    margin-top: 20px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    display: none;
    /* Hidden by default */
}

.message-error {
    background-color: #EC008C;
    /* Magenta/Pink */
    color: #fff;
}

.message-success {
    background-color: #00AEEF;
    /* Bright Blue */
    color: #0E1720;
}

/* Sections Page */
.section-list {
    list-style: none;
    padding: 0;
}

.section-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0E1720;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    border-left: 5px solid #555;
    /* Default: Not Started */
}

.section-item.partial {
    border-left-color: #f0ad4e;
    /* Yellow for Partial */
}

.section-item.completed {
    border-left-color: #5cb85c;
    /* Green for Completed */
}

.section-status {
    font-style: italic;
    color: #aaa;
}

.section-item.partial .section-status,
.section-item.completed .section-status {
    color: #fff;
}


/* Voting Page */
.candidate-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.candidate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #0E1720;
    border-radius: 5px;
    margin-bottom: 10px;
}

.vote-buttons button {
    padding: 8px 12px;
    margin-left: 5px;
    border: 1px solid #543993;
    /* Purple */
    background-color: transparent;
    color: #E8EAEA;
    border-radius: 5px;
    cursor: pointer;
}

.vote-buttons button:hover {
    background-color: #543993;
}

.vote-buttons button.selected {
    background-color: #EC008C;
    /* Magenta */
    color: #fff;
    border-color: #EC008C;
}

.vote-buttons button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #333;
}

/* ✅ Responsive Fix for Mobile */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    .site-header .banner {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .container {
        width: 90%;
        padding: 15px;
        margin: 20px auto;
        box-sizing: border-box;
    }

    input[type="text"],
    input[type="password"],
    .btn {
        font-size: 14px;
        padding: 12px;
    }

    .header h1 {
        font-size: 20px;
    }
}