/* Modern Admin Styles for Esterel Vouchers */

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #f8fafc 100%);
    color: #222;
}

#main_header {
    text-align: center;
    font-family: 'Josefin Sans', 'Segoe UI', sans-serif;
    font-size: 2rem;
    background: #ffffffcc;
    box-shadow: 0 2px 8px #a2d9d980;
    font-weight: 700;
    color: #1a3a3a;
    padding: 16px 0;
    border-radius: 0 0 16px 16px;
    margin-bottom: 16px;
}

#main_header_container {
    height: auto;
}

#main_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    background: #f0f4f8;
    padding: 10px 24px;
    border-bottom: 1px solid #e0e0e0;
    letter-spacing: 1px;
}

.main_nav_left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.main_nav_right {
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 400;
    color: #444;
}

.main_nav_right a {
    color: #2d006b;
    text-decoration: underline;
    font-weight: 500;
}



/* Hamburger styles */
.nav_hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 12px;
    z-index: 20;
}
.nav_hamburger span {
    display: block;
    height: 4px;
    width: 28px;
    background: #2d006b;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive nav */
@media (max-width: 700px) {
    #main_nav {
        flex-wrap: wrap;
        padding: 10px 8px;
    }
    .nav_hamburger {
        display: flex;
    }
    .main_nav_left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 16px #bed5b950;
        border-radius: 12px;
        margin-top: 8px;
        display: none;
        position: absolute;
        left: 0;
        top: 60px;
        z-index: 10;
        padding: 12px 0;
    }
    .main_nav_left.show {
        display: flex;
    }
    .main_nav_right {
        width: 100%;
        text-align: left;
        margin-top: 8px;
        font-size: 1rem;
    }
    .supabox {
        margin: 8px 16px;
        width: calc(100% - 32px);
        box-sizing: border-box;
    }
}





#main_container {
    padding: 32px;
    max-width: 900px;
    margin: 32px auto;
    background: #fff;
    box-shadow: 0 4px 24px #bed5b950;
    border-radius: 24px;
}

.supabox {
    background: linear-gradient(135deg, #ffe0d9 0%, #ffd8d8 100%);
    margin: 18px auto;
    box-shadow: 0 2px 8px #5e4f4f33;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}
.supabox:hover {
    box-shadow: 0 6px 24px #5e4f4f33;
}

.supabox_container {
    background: transparent;
    margin: 0;
}

.supabox a, a.supabox {
    text-decoration: none;
    color: #2d006b;
    font-weight: 500;
    transition: color 0.2s;
}
.supabox a:hover, a.supabox:hover {
    color: #b72020;
}

a i.fa {
    font-size: 1rem;
    vertical-align: middle;
    margin-right: 4px;
}
.supabox a i.fa, a.supabox i.fa {
    font-size: 1.2rem;
}
a i.fa.slowwarn {
    color: #b72020;
    text-shadow: 1px 1px 1px #ffd530;
}

div.error {
    display: block;
    border: 1px solid #b72020;
    background: #ffd8d8;
    color: #b72020;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-weight: 500;
}

.login_form {
    display: block;
    max-width: 400px;
    margin: 32px auto;
    background: #f8fafc;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px #bed5b950;
}

.login_form .field {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.login_form label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a3a3a;
    font-size: 1rem;
    width: auto;
    display: block;
}

.login_form input,
.login_form select,
.login_form textarea {
    padding: 10px 12px;
    border: 1px solid #bed5b9;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    margin-bottom: 8px;
}
.login_form input:focus,
.login_form select:focus,
.login_form textarea:focus {
    border-color: #a2d9d9;
    box-shadow: 0 0 0 2px #a2d9d980;
}

.login_form button,
.login_form input[type="submit"] {
    background: linear-gradient(90deg, #a2d9d9 0%, #bed5b9 100%);
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px #bed5b950;
    transition: background 0.2s, box-shadow 0.2s;
}
.login_form button:hover,
.login_form input[type="submit"]:hover {
    background: linear-gradient(90deg, #bed5b9 0%, #a2d9d9 100%);
    box-shadow: 0 4px 16px #a2d9d950;
}

.field_centered {
    text-align: center;
}

/* General input styles for all forms */
input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #bed5b9;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: #a2d9d9;
    box-shadow: 0 0 0 2px #a2d9d980;
}
button, input[type="submit"] {
    background: linear-gradient(90deg, #a2d9d9 0%, #bed5b9 100%);
    color: #222;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px #bed5b950;
    transition: background 0.2s, box-shadow 0.2s;
}
button:hover, input[type="submit"]:hover {
    background: linear-gradient(90deg, #bed5b9 0%, #a2d9d9 100%);
    box-shadow: 0 4px 16px #a2d9d950;
}