


{
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        linear-gradient(
            to bottom,
            #f8fafc,
            #eef5f8
        );

    color: #1f2937;
}

.template-page {
    max-width: 800px;

    margin: 0 auto;
    padding: 1rem 1rem;


}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* =========================
   BODY
========================= */

body {

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        linear-gradient(
            to bottom,
            #f8fafc,
            #eef5f8
        );

    color: #1f2937;

    min-height: 100vh;
}

/* =========================
   BACKGROUND
========================= */

.background {

    position: fixed;

    inset: 0;

    background-image:
        url("/static/background.d505d9161c0c.png");

    background-repeat: no-repeat;

    background-size: cover;

    background-position: center;

    opacity: 0.08;

    z-index: -1;
}

/* =========================
   LAYOUT
========================= */

.container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding:
        0 1.5rem;
}

/* =========================
   NAVBAR
========================= */

.main-navbar {

    margin: 1rem;

    margin-bottom: 2rem;

    background: rgba(255,255,255,0.9);

    backdrop-filter: blur(12px);

    border:
        1px solid rgba(226,232,240,0.9);

    border-radius: 22px;

    box-shadow:
        0 8px 30px rgba(15,23,42,0.06);

    padding:
        1.2rem 1.5rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    flex-wrap: wrap;
    background-color: #0080A3;
	color: white;
}

/* =========================
   BRAND
========================= */

.brand {

    display: flex;

    align-items: center;

    gap: 1rem;

    text-decoration: none;
}

.brand-logo {

    width: 58px;
    height: 58px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #0284c7,
            #0369a1
        );

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 1.4rem;

    box-shadow:
        0 6px 18px rgba(2,132,199,0.25);
}

.brand-text h1 {

    margin: 0;

    font-size: 1.6rem;

    font-weight: 700;

    color: #0f172a;
    color: white;
}

.brand-text p {

    margin: 0.15rem 0 0;

    font-size: 0.9rem;

    color: white;
}

/* =========================
   NAV ACTIONS
========================= */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 0.75rem;

    flex-wrap: wrap;
}

.nav-btn {

    width: 46px;
    height: 46px;

    border-radius: 14px;

    border: 1px solid #dbe4ee;

    background: white;

    color: #334155;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    transition:
        all 0.2s ease;
}

.nav-btn:hover {

    background: #0284c7;

    color: white;

    border-color: #0284c7;

    transform: translateY(-1px);
}

.logout-btn {

    border: none;

    background: transparent;

    padding: 0;

    cursor: pointer;
}

/* ---------- BUTTONS ---------- */

.primary-btn,
.secondary-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 10px;

    padding: 1rem 1.25rem;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.2s ease,
        opacity 0.2s ease;

    text-decoration: none;
}

/* Main blue button */

.primary-btn {
    background: #0080A3;
    color: white;
}

.primary-btn:hover {
    background: #0369a1;
}

.primary-btn:disabled {
    background: #94a3b8;

    cursor: not-allowed;
}

/* Secondary white button */

.secondary-btn {
    background: #f8fafc;
    color: #0f172a;

    border: 1px solid #cbd5e1;
}

.secondary-btn:hover {
    background: #f1f5f9;
}

.primary-btn:active,
.secondary-btn:active {
    transform: translateY(1px);
}

/* ---------- LINKS ---------- */

.back-link {
    display: inline-block;

    margin-bottom: 1.5rem;

    color: #0284c7;

    text-decoration: none;

    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* ---------- ALERT ---------- */

.alert-box {
    margin-bottom: 1.5rem;

    padding: 1rem 1.25rem;

    border-radius: 12px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;
}


/* =========================
   ALERTS
========================= */

.alert {

    padding:
        1rem 1.25rem;

    border-radius: 14px;

    margin-bottom: 1rem;

    border: 1px solid transparent;

    font-weight: 500;
}

.alert-success {

    background: #ecfdf5;

    color: #166534;

    border-color: #bbf7d0;
}

.alert-error,
.alert-danger {

    background: #fef2f2;

    color: #991b1b;

    border-color: #fecaca;
}

.alert-warning {

    background: #fffbeb;

    color: #92400e;

    border-color: #fde68a;
}

/* =========================
   CONTENT
========================= */

.page-content {

    padding-bottom: 3rem;
}

/* ---------- FORM ---------- */

.form-field {
    display: flex;
    flex-direction: column;

    margin-bottom: 1.25rem;
}

.form-field label {
    margin-bottom: 0.5rem;

    font-size: 0.95rem;
    font-weight: 600;

    color: #334155;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding: 0.95rem 1rem;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    background: white;

    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
     outline: none;

    border-color: #0284c7;

    box-shadow:
        0 0 0 4px rgba(2, 132, 199, 0.12);
}


/* =========================
   INPUTS
========================= */

input,
select,
textarea {

    background: white;

    border:
        1px solid #cbd5e1;

    border-radius: 10px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: #0284c7;

    box-shadow:
        0 0 0 4px rgba(2,132,199,0.12);
}



/* ---------- CARDS ---------- */

.template-card,
.action-card,
.template-footer,
.info-card, .dialog-content {
    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 2rem;

    margin-bottom: 1.5rem;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.04);
}







/* ---------- FOOTER ---------- */

.template-footer {
    font-size: 0.95rem;

    line-height: 1.7;

    color: #475569;
}

.footer-links {
    margin-top: 1.5rem;

    display: flex;
    flex-wrap: wrap;

    gap: 1rem;
}

.footer-links a {
    color: #0284c7;

    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}


header { white; padding: 20px 0px; }
header h1 { display: inline-block; margin: 0; }
header h1 a { color: white; text-decoration: none; }

.container { max-width: 800px; margin: auto; padding: 0 0px; }



/* ---------- TYPO ---------- */

.template-title {
    margin: 0 0 2rem;

    font-size: 2rem;
    font-weight: 700;

    color: #0f172a;
}

.info-text {
    margin-bottom: 2rem;

    line-height: 1.7;

    color: #475569;
}


/* ---------- RADIO ---------- */

.radio-group {
    display: flex;

    flex-direction: column;

    gap: 0.5rem;
}

.radio-option {
    display: flex;

    align-items: center;

    gap: 0.6rem;

    font-size: 0.95rem;

    cursor: pointer;

    color: #334155;
}



/* ---------- ERROR ---------- */


.checkbox-left {
    display: flex;              /* flex container */
    align-items: left;        /* vertically center checkbox and text */
    gap: 0.75rem;               /* space between checkbox and text */
    justify-content: flex-start;/* align to the left */
    width: 100%;                /* full width of card */
}

/* Style the label text */
.checkbox-left label {
    display: flex;              /* inline flex for checkbox + text */
    align-items: center;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}

/* Optional: make the checkbox slightly bigger */
.checkbox-left input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* =========================
   MOBILE
========================= */


@media (max-width: 640px) {

    .template-card,
    .action-card,
    .template-footer,
    .info-card {
        padding: 1.5rem;
    }

    .template-title {
        font-size: 1.6rem;
    }
}


/* @media (max-width: 768px) {

    .main-navbar {

        flex-direction: column;

        align-items: flex-start;
    }

    .nav-actions {

        width: 100%;
    }

    .brand-text h1 {

        font-size: 1.35rem;
    }
} */

@media (max-width: 768px) {

    .main-navbar {

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

        flex-wrap: nowrap;

        gap: 0.75rem;
    }

    .brand-text h1 {
        font-size: 1.2rem;
    }

    .brand-text p {
        font-size: 0.75rem;
    }

    .nav-actions {

        width: auto;

        flex-wrap: nowrap;

        gap: 0.5rem;
    }

    .nav-btn {

        width: 40px;
        height: 40px;

        font-size: 0.9rem;
    }

    .brand-logo {

        width: 48px;
        height: 48px;
    }
}

    div.background {
    background-image: url("/static/background.d505d9161c0c.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #F5F5F5;
    position: absolute;
    top: 0%;
    bottom:0%;
    left:0;
    right: 0%;
    z-index: -1;
    opacity: 50;
}
