/* GLOBAL RESET + BASE STYLE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #eef2f3;
    min-height: 100vh;
    color: #333;
}

/* NAVBAR*/
.navbar {
    width: 100%;
    background: #003366;
    padding: 12px 0;
    position: fixed;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.navbar-inner {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar img {
    border-radius: 8px;
}

.navbar h2 {
    font-size: 26px;
    color: white;
    font-weight: bold;
}

.chmsc_nav {
    font-size: 14px;
    color: #cce4ff;
}

/* 
   WRAPPERS FOR ALL PAGES
 */
.wrapper_admin,
.wrapper {
    width: 90%;
    max-width: 650px;
    margin: 140px auto 40px auto;
    background: rgb(49, 47, 47);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* 
   HEADINGS
*/
h2,
h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #003366;
    font-weight: bold;
}

/* 
   FORMS
 */
.form-group label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

input[type=text],
input[type=password],
input[type=email],
input[type=file],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #888;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #003366;
    box-shadow: 0 0 6px rgba(0,51,102,0.5);
}

/*
   BUTTONS
 */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    transition: 0.3s;
}

.btn-primary {
    background: #003366;
    color: white;
}

.btn-primary:hover {
    background: #001f4d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2c81ba;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

/*
   TABLE FORM LOGIN 
 */
table {
    width: 100%;
}

td {
    padding: 10px 5px;
    color: #003366;
    font-weight: bold;
}

/* 
   BALLOT PREVIEW / PANELS
 */
.ballot,
.hero-body-index,
.hero-body-voting {
    background: #003366;
    padding: 20px;
    border-radius: 10px;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

/* 
   MODALS (Bootstrap style)
 */
.modal {
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.modal-header {
    font-weight: bold;
    padding-bottom: 10px;
}

.modal-body {
    font-size: 16px;
    color: #333;
}

/* 
   ALERTS / ERROR MESSAGES
*/
.alert {
    background: rgba(255, 0, 0, 0.8);
    padding: 12px;
    color: white;
    border-radius: 8px;
    margin-top: 15px;
}

.alert-error {
    background: #e74c3c;
}

/* CLOSE BUTTON */
.close {
    float: right;
    font-size: 20px;
    cursor: pointer;
}

/* 
   BALLOT CONTENT
 */
.cent {
    font-size: 20px;
    color: white;
    font-weight: bold;
}

/* 
   VOTING CONFIRMATION PAGE
   Desktop + Mobile Friendly
 */
.hero-body-voting {
    background: #1b263b;
    padding: 25px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.vote_wise1 {
    font-size: 28px;
    font-weight: bold;
}

/* Back button */
.back #bak {
    background: #3c6e71;
    border: none;
    padding: 8px 15px;
}

/* Spacing bar */
.hero-body-456 {
    height: 20px;
}

/* Ballot preview container */
.ballot {
    background: #ffffff;
    padding: 25px;
    width: 90%;
    margin: 25px auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.cent {
    font-size: 16px;
    color: #333;
}

.cent p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Final vote button */
.ok_vote {
    text-align: center;
    margin: 30px 0;
}

#logout {
    padding: 12px 22px;
    font-size: 17px;
    border-radius: 8px;
    background: #2d6a4f;
}

#logout:hover {
    background: #1b4332;
}

/* Modal styling */
.modal-header {
    background: #1b263b;
    color: white;
    border-bottom: none;
}

.modal-body p {
    font-size: 16px;
    color: #666;
    text-align: center;
}

.modal-footer .btn-success {
    background: #2d6a4f;
}

.modal-footer .btn-success:hover {
    background: #1b4332;
}

.vote_wise {
    text-align: center;
    font-weight: 700;
    padding: 15px 0;
}

.vote_wise font {
    font-size: 32px !important; /* Desktop size */
    line-height: 1.3;
    display: inline-block;
}



@media (max-width: 480px) {

    /* Fix header overlapping content */
    body {
        padding-top: 80px !important;
        padding-bottom: 120px !important;
    }

    /* CLEAN FIX FOR HERO-BODY-456 (mobile only) */
    .hero-body-456 {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 10px !important;
    }

    .hero-body-456 > div {
        width: 100% !important;
    }

    /* Fix OK & Submit button hidden or off-screen */
    .ok_vote a,
    button[type="submit"] {
        width: 100% !important;
        max-width: 280px !important;
        margin: 10px auto !important;
        display: block !important;
    }
}
