/* =========================================================
   DNS-72 WEBSITE
   Main stylesheet
   Maritime / Professional / High Contrast
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --navy-950: #06101d;
    --navy-900: #0b1728;
    --navy-800: #10243a;
    --navy-700: #173653;

    --blue: #1769aa;
    --blue-dark: #0e4f83;
    --blue-light: #e7f2fb;

    --white: #ffffff;

    --background: #f1f4f7;
    --surface: #ffffff;
    --surface-soft: #f7f9fb;

    --text: #111111;
    --text-dark: #050505;
    --text-secondary: #333333;
    --text-muted: #555555;

    --border: #d5dce4;

    --success: #087a50;
    --success-background: #e6f5ee;

    --warning: #9a5b00;
    --warning-background: #fff3dc;

    --danger: #b42323;
    --danger-background: #fff0f0;

    --shadow-small:
        0 2px 8px rgba(0, 0, 0, 0.06);

    --shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    --shadow-large:
        0 18px 45px rgba(0, 0, 0, 0.13);

    --radius-small: 8px;
    --radius: 14px;
    --radius-large: 20px;

    --transition: 0.2s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration: none;

    transition:
        color var(--transition);
}

a:hover {
    color: var(--blue-dark);
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--text-dark);

    line-height: 1.25;
}

h1 {
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}


/* =========================================================
   GENERAL CONTAINERS
   ========================================================= */

main,
.container,
.page-container {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.container {
    padding-top: 40px;
    padding-bottom: 60px;
}


/* =========================================================
   NAVIGATION BAR
   ========================================================= */

.navbar {
    width: 100%;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    background: var(--navy-950);
    color: #ffffff;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.18);
}

.navbar a {
    color: #ffffff;
}

.navbar-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #ffffff;

    font-size: 1.2rem;
    font-weight: 750;
}

.navbar-brand:hover {
    color: #ffffff;
}

.navbar-links {
    display: flex;
    align-items: center;

    gap: 22px;
}

.navbar-links a {
    color: #ffffff;
    opacity: 0.92;

    font-weight: 500;
}

.navbar-links a:hover {
    color: #ffffff;
    opacity: 1;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 24px;

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card h1,
.card h2,
.card h3,
.card h4 {
    color: var(--text-dark);
}

.card p {
    color: var(--text-secondary);
}

.card a {
    color: var(--blue);
}

.card a:hover {
    color: var(--blue-dark);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.card-title {
    margin: 0;

    color: var(--text-dark);
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 45px 0 70px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin-bottom: 7px;

    color: var(--text-dark);
}

.dashboard-header p {
    margin-top: 0;

    color: var(--text-secondary);
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;
}

.dashboard-card {
    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 25px;

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.dashboard-card h1,
.dashboard-card h2,
.dashboard-card h3,
.dashboard-card h4 {
    color: var(--text-dark);
}

.dashboard-card p {
    color: var(--text-secondary);
}

.dashboard-card a {
    color: var(--blue);
}

.dashboard-number {
    margin: 5px 0;

    color: var(--text-dark);

    font-size: 2rem;
    font-weight: 750;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 18px;

    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 22px;

    box-shadow: var(--shadow-small);
}

.stat-label {
    display: block;

    color: var(--text-secondary);

    font-size: 0.9rem;
    font-weight: 550;
}

.stat-value {
    display: block;

    margin-top: 4px;

    color: var(--text-dark);

    font-size: 1.8rem;
    font-weight: 750;
}


/* =========================================================
   BUTTONS
   ========================================================= */

button,
.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 9px 17px;

    border: none;
    border-radius: var(--radius-small);

    background: var(--blue);
    color: #ffffff;

    font-weight: 650;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

button:hover,
.btn:hover {
    background: var(--blue-dark);
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(23, 105, 170, 0.22);
}

.btn-secondary {
    background: #e1e7ed;
    color: #111111;
}

.btn-secondary:hover {
    background: #ccd5de;
    color: #000000;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #8f1d1d;
    color: #ffffff;
}

.btn-success {
    background: var(--success);
    color: #ffffff;
}

.btn-success:hover {
    background: #075c3d;
    color: #ffffff;
}


/* =========================================================
   FORMS
   ========================================================= */

form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;

    margin-bottom: 7px;

    color: #111111;

    font-size: 0.92rem;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;

    padding: 11px 13px;

    background: #ffffff;
    color: #111111;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: #666666;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(23, 105, 170, 0.12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}


/* =========================================================
   FORM BUILDER
   ========================================================= */

.field-row {
    background: var(--surface-soft);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 18px;

    margin-bottom: 14px;
}

.field-row:hover {
    border-color: #bdc9d5;
}

.field-row-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 15px;
}

.field-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 14px;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-container {
    width: 100%;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-small);
}

table {
    width: 100%;

    min-width: 700px;

    border-collapse: collapse;
}

th {
    padding: 13px 15px;

    background: var(--navy-900);
    color: #ffffff;

    text-align: left;

    font-size: 0.86rem;
    font-weight: 650;

    white-space: nowrap;
}

td {
    padding: 13px 15px;

    background: #ffffff;
    color: #111111;

    border-bottom: 1px solid var(--border);

    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: #f4f7fa;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box {
    margin: 18px 0;
}

.search-box input {
    max-width: 420px;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.status,
.badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 700;
}

.status-success,
.badge-success {
    background: var(--success-background);
    color: var(--success);
}

.status-warning,
.badge-warning {
    background: var(--warning-background);
    color: var(--warning);
}

.status-danger,
.badge-danger {
    background: var(--danger-background);
    color: var(--danger);
}


/* =========================================================
   ALERTS
   ========================================================= */

.error,
.alert-error {
    background: var(--danger-background);
    color: #8f1d1d;

    border: 1px solid #efcaca;
    border-radius: var(--radius-small);

    padding: 12px 15px;

    margin-bottom: 20px;
}

.success,
.alert-success {
    background: var(--success-background);
    color: #075c3d;

    border: 1px solid #bfe7d5;
    border-radius: var(--radius-small);

    padding: 12px 15px;

    margin-bottom: 20px;
}

.warning,
.alert-warning {
    background: var(--warning-background);
    color: #744500;

    border: 1px solid #efd9ae;
    border-radius: var(--radius-small);

    padding: 12px 15px;

    margin-bottom: 20px;
}


/* =========================================================
   LOGIN / AUTHENTICATION
   ========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            var(--navy-950),
            var(--navy-800)
        );
}

.auth-card {
    width: min(440px, 100%);

    background: #ffffff;
    color: #111111;

    border-radius: var(--radius-large);

    padding: 38px;

    box-shadow: var(--shadow-large);
}

.auth-card h1 {
    color: #000000;

    text-align: center;

    margin-bottom: 8px;
}

.auth-card h2,
.auth-card h3 {
    color: #111111;
}

.auth-card p {
    color: #444444;
}

.auth-card .subtitle {
    color: #444444;

    text-align: center;

    margin-bottom: 28px;
}


/* =========================================================
   SUBMISSION PAGES
   ========================================================= */

.submission-container {
    width: min(900px, calc(100% - 40px));

    margin: 40px auto 70px;
}

.submission-container h1,
.submission-container h2,
.submission-container h3 {
    color: #111111;
}

.submission-info {
    background: #ffffff;
    color: #111111;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 22px;

    box-shadow: var(--shadow-small);
}

.submission-info p {
    color: #222222;

    margin: 7px 0;
}

.field {
    background: #ffffff;
    color: #111111;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 20px;

    margin-bottom: 15px;

    box-shadow: var(--shadow-small);
}

.field-name {
    margin-bottom: 7px;

    color: #000000;

    font-weight: 700;
}

.field-value {
    color: #111111;

    word-break: break-word;
}

.field-value img {
    display: block;

    max-width: 300px;
    max-height: 300px;

    border-radius: var(--radius-small);

    border: 1px solid var(--border);
}


/* =========================================================
   ACTION BUTTON AREA
   ========================================================= */

.actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-top: 25px;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.no-submissions,
.empty-state {
    background: #ffffff;
    color: #444444;

    border: 1px dashed var(--border);
    border-radius: var(--radius);

    padding: 35px;

    text-align: center;
}

.no-submissions h1,
.no-submissions h2,
.no-submissions h3,
.empty-state h1,
.empty-state h2,
.empty-state h3 {
    color: #111111;
}

.no-submissions p,
.empty-state p {
    color: #555555;
}


/* =========================================================
   PUBLIC FORM
   ========================================================= */

.public-form {
    width: min(760px, calc(100% - 30px));

    margin: 35px auto 60px;
}

.public-form-header {
    background:
        linear-gradient(
            135deg,
            var(--navy-950),
            var(--navy-700)
        );

    color: #ffffff;

    border-radius: var(--radius-large);

    padding: 35px;

    margin-bottom: 22px;

    box-shadow: var(--shadow);
}

.public-form-header h1,
.public-form-header h2,
.public-form-header h3 {
    color: #ffffff;
}

.public-form-header p {
    color: rgba(255, 255, 255, 0.86);
}

.public-form-card {
    background: #ffffff;
    color: #111111;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 28px;

    box-shadow: var(--shadow-small);
}

.public-form-card h1,
.public-form-card h2,
.public-form-card h3,
.public-form-card h4 {
    color: #111111;
}

.public-form-card p {
    color: #333333;
}


/* =========================================================
   LINKS
   ========================================================= */

.link {
    color: var(--blue);
    font-weight: 600;
}

.link:hover {
    color: var(--blue-dark);
}


/* =========================================================
   SMALL / MUTED TEXT
   ========================================================= */

small {
    color: #555555;
}

.muted {
    color: #555555;
}


/* =========================================================
   DIVIDERS
   ========================================================= */

hr {
    border: none;

    border-top: 1px solid var(--border);

    margin: 30px 0;
}


/* =========================================================
   IMAGES
   ========================================================= */

img {
    max-width: 100%;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .navbar {
        min-height: 62px;

        padding: 0 18px;
    }

    .navbar-links {
        gap: 12px;
    }

    .navbar-links a {
        font-size: 0.85rem;
    }

    main,
    .container,
    .page-container,
    .dashboard {
        width: calc(100% - 24px);
    }

    .container {
        padding-top: 25px;
        padding-bottom: 40px;
    }

    h1 {
        font-size: 1.65rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .dashboard {
        padding-top: 28px;
        padding-bottom: 45px;
    }

    .card,
    .dashboard-card {
        padding: 18px;
    }

    .auth-page {
        padding: 15px;
    }

    .auth-card {
        padding: 27px 20px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        align-items: stretch;

        flex-direction: column;
    }

    .actions a,
    .actions button {
        width: 100%;
    }

    .public-form {
        width: calc(100% - 20px);

        margin-top: 20px;
    }

    .public-form-header {
        padding: 25px 20px;
    }

    .public-form-card {
        padding: 20px;
    }

    .submission-container {
        width: calc(100% - 24px);

        margin-top: 25px;
    }
}

/* =========================================================
   MANAGE FORMS
   ========================================================= */

.form-management-card {
    display: flex;
    flex-direction: column;
    gap: 0;

    min-height: 100%;
}

.form-card-header {
    margin-bottom: 18px;
}

.form-card-header h2 {
    margin-bottom: 6px;

    color: #050505;

    font-size: 1.35rem;
    font-weight: 750;
}

.form-description {
    margin: 0;

    color: #444444;

    font-size: 0.95rem;

    word-break: break-word;
}


/* =========================================================
   FORM INFORMATION
   ========================================================= */

.form-card-info {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    padding: 16px 0;

    margin-bottom: 20px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.form-info-item {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;

    color: #222222;

    font-size: 0.9rem;
}

.form-info-item strong {
    color: #050505;

    font-size: 1.1rem;
}

.form-info-label {
    color: #666666;

    font-size: 0.76rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-card-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 9px;

    margin-top: auto;
}

.inline-form {
    width: auto;

    margin: 0;
}

.inline-form button {
    margin: 0;
}


/* =========================================================
   WARNING BUTTON
   ========================================================= */

.btn-warning {
    background: #b86b00;
    color: #ffffff;
}

.btn-warning:hover {
    background: #8f5100;
    color: #ffffff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .form-card-info {
        grid-template-columns: 1fr 1fr;
    }

    .form-card-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .form-card-actions > a,
    .form-card-actions > .inline-form,
    .form-card-actions > .inline-form button {
        width: 100%;
    }

}

/* =========================================================
   FORM ACTION BUTTON FIX
   ========================================================= */

.form-card-actions a.btn {
    color: #ffffff;
}

.form-card-actions a.btn:hover {
    color: #ffffff;
}

.form-card-actions a.btn-secondary {
    color: #111111;
}

.form-card-actions a.btn-secondary:hover {
    color: #000000;
}

/* =========================================================
   DNS-72 ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 34px 0 70px;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    min-height: 76px;

    display: flex;
    align-items: center;

    padding: 0 46px;

    background:
        linear-gradient(
            135deg,
            #07182a,
            #123b5d
        );

    color: #ffffff;

    box-shadow:
        0 3px 18px rgba(0, 0, 0, 0.18);
}

.navbar-brand {
    display: inline-flex;

    align-items: center;

    gap: 13px;

    color: #ffffff;

    font-size: 1.55rem;

    font-weight: 750;

    text-decoration: none;
}

.navbar-brand:hover {
    color: #ffffff;
}

.brand-anchor {
    width: 39px;
    height: 39px;

    color: #ffffff;

    flex-shrink: 0;
}


.navbar-links {
    display: flex;

    align-items: stretch;

    gap: 8px;

    height: 76px;

    margin-left: auto;

    margin-right: 34px;
}

.navbar-link {
    position: relative;

    display: flex;

    align-items: center;

    padding: 0 25px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 1rem;

    font-weight: 600;

    text-decoration: none;
}

.navbar-link:hover {
    color: #ffffff;
}

.navbar-link.active {
    color: #ffffff;
}

.navbar-link.active::after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 0;

    height: 4px;

    background: #65c7f3;
}


.navbar-user {
    width: 30px;
    height: 30px;

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;
}

.navbar-user svg {
    width: 26px;
    height: 26px;
}


/* =========================================================
   WELCOME HEADER
   ========================================================= */

.dashboard-welcome {
    display: flex;

    align-items: center;

    gap: 25px;

    padding: 30px 0 36px;
}

.welcome-icon {
    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #e3f1fb;

    border-radius: 50%;

    color: #164f79;
}

.welcome-anchor {
    width: 42px;
    height: 42px;
}

.dashboard-welcome h1 {
    margin: 0 0 8px;

    color: #081b30;

    font-size: 2.25rem;

    font-weight: 750;

    letter-spacing: -0.035em;
}

.dashboard-welcome p {
    margin: 0;

    color: #58718b;

    font-size: 1.15rem;
}


/* =========================================================
   PANELS
   ========================================================= */

.dashboard-panel {
    margin-bottom: 25px;

    padding: 31px 32px 34px;

    background: #ffffff;

    border: 1px solid #d8e2eb;

    border-radius: 14px;

    box-shadow:
        0 5px 18px rgba(20, 55, 85, 0.07);
}


.panel-heading {
    display: flex;

    align-items: flex-start;

    gap: 22px;

    margin-bottom: 29px;
}

.panel-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #1477bd;
}

.panel-icon svg {
    width: 43px;
    height: 43px;
}

.panel-heading h2 {
    margin: 0 0 5px;

    color: #102943;

    font-size: 1.75rem;

    font-weight: 750;
}

.panel-heading p {
    margin: 0;

    color: #607991;

    font-size: 1.05rem;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.dashboard-actions {
    display: flex;

    gap: 16px;

    padding-left: 66px;
}

.dashboard-button {
    min-height: 58px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    padding: 13px 27px;

    border-radius: 9px;

    font-size: 1rem;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.dashboard-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(20, 80, 120, 0.17);
}


/* Primary */

.dashboard-button.primary {
    background: #1479bd;

    color: #ffffff;

    min-width: 235px;
}

.dashboard-button.primary:hover {
    background: #0d659f;

    color: #ffffff;
}


/* Secondary */

.dashboard-button.secondary {
    background: #f0f5f9;

    color: #17649a;

    border: 1px solid #ccdce8;

    min-width: 235px;
}

.dashboard-button.secondary:hover {
    background: #e4edf4;

    color: #0e507e;
}


/* Button icons */

.button-icon {
    font-size: 1.65rem;

    line-height: 1;
}

.button-icon.gear {
    font-size: 1.25rem;
}


/* =========================================================
   DATA BUTTONS
   ========================================================= */

.data-actions {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.data-button {
    min-height: 67px;

    background: #1679bc;

    color: #ffffff;

    border: none;

    font-size: 1rem;
}

.data-button:hover {
    background: #0d659f;

    color: #ffffff;
}

.data-button-icon {
    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.data-button-icon svg {
    width: 30px;
    height: 30px;
}

.sheets-icon {
    color: #ffffff;
}


/* =========================================================
   BACK HOME
   ========================================================= */

.back-home-panel {
    display: flex;

    align-items: center;

    gap: 23px;

    min-height: 116px;

    padding: 25px 32px;

    background: #f4f9fc;

    border: 1px solid #dce8f0;

    border-radius: 14px;

    color: #176fa9;

    text-decoration: none;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.back-home-panel:hover {
    background: #edf6fb;

    color: #125b8d;

    transform: translateY(-1px);
}

.back-arrow {
    font-size: 2.6rem;

    line-height: 1;

    font-weight: 300;
}

.back-home-content {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.back-home-content strong {
    color: #176fa9;

    font-size: 1.35rem;
}

.back-home-content small {
    color: #627b91;

    font-size: 0.95rem;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .navbar {
        padding: 0 18px;
    }

    .navbar-links {
        margin-right: 10px;
    }

    .navbar-link {
        padding: 0 10px;
    }

    .navbar-link.active::after {
        left: 7px;
        right: 7px;
    }

    .navbar-user {
        display: none;
    }

    .admin-dashboard {
        width: calc(100% - 24px);

        padding-top: 20px;
    }

    .dashboard-welcome {
        padding: 22px 5px 28px;

        gap: 15px;
    }

    .welcome-icon {
        width: 58px;
        height: 58px;
    }

    .welcome-anchor {
        width: 34px;
        height: 34px;
    }

    .dashboard-welcome h1 {
        font-size: 1.65rem;
    }

    .dashboard-welcome p {
        font-size: 0.95rem;
    }

    .dashboard-panel {
        padding: 23px 18px 25px;
    }

    .panel-heading {
        gap: 13px;
    }

    .panel-icon {
        width: 36px;
        height: 36px;
    }

    .panel-icon svg {
        width: 35px;
        height: 35px;
    }

    .panel-heading h2 {
        font-size: 1.4rem;
    }

    .panel-heading p {
        font-size: 0.92rem;
    }

    .dashboard-actions {
        flex-direction: column;

        padding-left: 0;
    }

    .dashboard-button.primary,
    .dashboard-button.secondary {
        width: 100%;

        min-width: 0;
    }

    .data-actions {
        grid-template-columns: 1fr;
    }

    .data-button {
        width: 100%;
    }

    .back-home-panel {
        padding: 22px;
    }

}

/* =========================================================
   DNS-72 HOME PAGE
   ========================================================= */

.home-page {
    min-height: 100vh;

    margin: 0;

    background:
        linear-gradient(
            135deg,
            #061321 0%,
            #0b243a 48%,
            #123d5c 100%
        );

    color: #ffffff;
}


/* =========================================================
   HOME CONTAINER
   ========================================================= */

.home-container {
    width: 100%;
    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 50px 25px;
}


/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    width: min(780px, 100%);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 60px 45px 55px;

    background:
        rgba(255, 255, 255, 0.97);

    border: 1px solid
        rgba(255, 255, 255, 0.8);

    border-radius: 24px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.28);
}


/* =========================================================
   ANCHOR
   ========================================================= */

.home-anchor {
    width: 78px;
    height: 78px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    background: #e5f2fb;

    border-radius: 50%;

    color: #0e5d8e;
}

.home-anchor svg {
    width: 48px;
    height: 48px;
}


/* =========================================================
   KICKER
   ========================================================= */

.home-kicker {
    margin: 0 0 12px;

    color: #176b9d;

    font-size: 0.82rem;

    font-weight: 750;

    letter-spacing: 0.14em;
}


/* =========================================================
   TITLE
   ========================================================= */

.home-hero h1 {
    margin: 0;

    color: #06182a;

    font-size: clamp(3.5rem, 9vw, 6rem);

    font-weight: 800;

    line-height: 0.95;

    letter-spacing: -0.055em;
}


/* =========================================================
   SUBTITLE
   ========================================================= */

.home-hero h2 {
    margin: 18px 0 0;

    color: #193a55;

    font-size: clamp(1.35rem, 3vw, 1.9rem);

    font-weight: 600;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.home-description {
    width: min(560px, 100%);

    margin: 16px 0 32px;

    color: #526b80;

    font-size: 1.05rem;

    line-height: 1.65;
}


/* =========================================================
   ADMIN BUTTON
   ========================================================= */

.home-admin-button {
    min-width: 210px;

    min-height: 58px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    padding: 14px 28px;

    background: #1479bd;

    color: #ffffff;

    border-radius: 10px;

    font-size: 1.05rem;

    font-weight: 750;

    text-decoration: none;

    box-shadow:
        0 8px 20px
        rgba(20, 121, 189, 0.25);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.home-admin-button svg {
    width: 22px;
    height: 22px;
}

.home-admin-button:hover {
    background: #0d659f;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 27px
        rgba(20, 121, 189, 0.32);
}


/* =========================================================
   FOOTER
   ========================================================= */

.home-footer {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 28px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 0.88rem;

    letter-spacing: 0.04em;
}

.footer-separator {
    opacity: 0.5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .home-container {
        padding: 20px 14px;
    }

    .home-hero {
        padding: 42px 22px 40px;

        border-radius: 19px;
    }

    .home-anchor {
        width: 65px;
        height: 65px;

        margin-bottom: 20px;
    }

    .home-anchor svg {
        width: 40px;
        height: 40px;
    }

    .home-hero h1 {
        font-size: 3.6rem;
    }

    .home-hero h2 {
        font-size: 1.25rem;
    }

    .home-description {
        font-size: 0.95rem;
    }

    .home-admin-button {
        width: 100%;

        max-width: 300px;
    }

}

/* =========================================================
   DNS-72 ADMIN LOGIN
   ========================================================= */

.auth-page {
    min-height: 100vh;

    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #061321 0%,
            #0b243a 50%,
            #123d5c 100%
        );
}


/* =========================================================
   CONTAINER
   ========================================================= */

.auth-container {
    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: min(460px, 100%);

    padding: 42px 42px 34px;

    background: #ffffff;

    border-radius: 22px;

    border: 1px solid
        rgba(255, 255, 255, 0.8);

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.30);
}


/* =========================================================
   ANCHOR
   ========================================================= */

.login-anchor {
    width: 68px;
    height: 68px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 24px;

    background: #e5f2fb;

    border-radius: 50%;

    color: #0e5d8e;
}

.login-anchor svg {
    width: 42px;
    height: 42px;
}


/* =========================================================
   HEADING
   ========================================================= */

.login-heading {
    text-align: center;

    margin-bottom: 30px;
}

.login-kicker {
    margin: 0 0 8px;

    color: #176b9d;

    font-size: 0.75rem;

    font-weight: 750;

    letter-spacing: 0.14em;
}

.login-heading h1 {
    margin: 0 0 8px;

    color: #071a2c;

    font-size: 2.15rem;

    font-weight: 750;

    letter-spacing: -0.035em;
}

.login-heading p:last-child {
    margin: 0;

    color: #60788d;

    font-size: 0.98rem;
}


/* =========================================================
   ERROR
   ========================================================= */

.login-error {
    margin-bottom: 22px;

    padding: 12px 14px;

    background: #fff0f0;

    border: 1px solid #efcaca;

    border-radius: 9px;

    color: #9d2020;

    font-size: 0.9rem;

    font-weight: 600;
}


/* =========================================================
   FORM
   ========================================================= */

.login-form {
    width: 100%;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;

    margin-bottom: 7px;

    color: #182b3b;

    font-size: 0.9rem;

    font-weight: 700;
}

.login-field input {
    width: 100%;

    min-height: 50px;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #ccd7e0;

    border-radius: 9px;

    color: #111111;

    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.login-field input::placeholder {
    color: #7b8790;
}

.login-field input:focus {
    border-color: #1479bd;

    box-shadow:
        0 0 0 3px
        rgba(20, 121, 189, 0.12);
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-submit {
    width: 100%;

    min-height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 8px;

    background: #1479bd;

    color: #ffffff;

    border: none;

    border-radius: 9px;

    font-size: 1rem;

    font-weight: 750;

    cursor: pointer;

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.login-submit svg {
    width: 21px;
    height: 21px;
}

.login-submit:hover {
    background: #0d659f;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(20, 121, 189, 0.25);
}


/* =========================================================
   BACK HOME
   ========================================================= */

.login-back {
    display: block;

    margin-top: 25px;

    text-align: center;

    color: #176fa9;

    font-size: 0.95rem;

    font-weight: 600;

    text-decoration: none;
}

.login-back:hover {
    color: #0e527f;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .auth-page {
        padding: 18px;
    }

    .login-card {
        padding: 34px 22px 28px;

        border-radius: 18px;
    }

    .login-heading h1 {
        font-size: 1.8rem;
    }

}

/* =========================================================
   DNS-72 SECURITY VERIFICATION
   ========================================================= */

.security-card {
    width: min(540px, 100%);
}


/* =========================================================
   PROGRESS
   ========================================================= */

.security-progress {
    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 0 30px;

    padding: 0 10px;
}

.security-step {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;

    color: #8a9baa;

    font-size: 0.7rem;

    font-weight: 700;

    white-space: nowrap;
}

.security-step span {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e7edf2;

    color: #657889;

    font-size: 0.85rem;
}

.security-step small {
    color: #7a8c9b;

    font-size: 0.7rem;
}

.security-step.completed span {
    background: #1479bd;

    color: #ffffff;
}

.security-step.completed small {
    color: #1479bd;
}

.security-step.current span {
    background: #0b2943;

    color: #ffffff;

    box-shadow:
        0 0 0 4px #dcecf7;
}

.security-step.current small {
    color: #0b2943;
}

.security-line {
    width: 55px;

    height: 2px;

    margin: 0 7px;

    background: #d8e1e8;
}


/* =========================================================
   SECURITY QUESTIONS
   ========================================================= */

.security-form {
    display: flex;

    flex-direction: column;

    gap: 16px;
}

.security-question {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 17px;

    background: #f7fafc;

    border: 1px solid #dbe4eb;

    border-radius: 11px;
}

.question-number {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #e2f0f9;

    border-radius: 8px;

    color: #176b9d;

    font-size: 0.75rem;

    font-weight: 800;
}

.question-content {
    flex: 1;

    min-width: 0;
}

.question-content label {
    margin-bottom: 8px;

    color: #172b3d;

    font-size: 0.91rem;

    font-weight: 700;
}

.question-content input {
    min-height: 47px;

    background: #ffffff;
}


/* =========================================================
   VERIFY BUTTON
   ========================================================= */

.security-submit {
    margin-top: 8px;
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.security-note {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 23px;

    padding: 12px 14px;

    background: #f2f7fa;

    border-radius: 9px;

    color: #5c7182;

    font-size: 0.8rem;

    line-height: 1.4;
}

.security-note svg {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    color: #397da4;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .security-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .security-progress {
        padding: 0;
    }

    .security-line {
        width: 30px;

        margin-left: 4px;
        margin-right: 4px;
    }

    .security-question {
        padding: 14px;

        gap: 10px;
    }

}

/* =========================================================
   DNS-72 BIOMETRIC VERIFICATION
   ========================================================= */

.biometric-card {
    width: min(540px, 100%);
}


/* =========================================================
   BIOMETRIC CONTENT
   ========================================================= */

.biometric-area {
    margin-bottom: 24px;

    padding: 24px 20px;

    text-align: center;

    background: #f7fafc;

    border: 1px solid #dbe5ec;

    border-radius: 13px;
}

.biometric-icon {
    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 17px;

    background: #e4f2fb;

    border-radius: 50%;

    color: #176b9d;
}

.biometric-icon svg {
    width: 42px;
    height: 42px;
}

.biometric-area h2 {
    margin: 0 0 7px;

    color: #122b40;

    font-size: 1.25rem;
}

.biometric-area p {
    max-width: 400px;

    margin: 0 auto;

    color: #60788b;

    font-size: 0.92rem;

    line-height: 1.55;
}


/* =========================================================
   METHODS
   ========================================================= */

.biometric-methods {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 18px;
}

.biometric-methods span {
    padding: 6px 10px;

    background: #e9f1f6;

    border-radius: 999px;

    color: #466176;

    font-size: 0.72rem;

    font-weight: 650;
}


/* =========================================================
   BUTTON
   ========================================================= */

.biometric-submit {
    margin-top: 5px;
}


/* =========================================================
   STATUS
   ========================================================= */

.biometric-status {
    min-height: 20px;

    margin-top: 14px;

    text-align: center;

    color: #536b7d;

    font-size: 0.85rem;
}

.biometric-status.error {
    color: #a32323;
}

.biometric-status.success {
    color: #087a50;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .biometric-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .biometric-area {
        padding: 20px 15px;
    }

    .biometric-methods {
        gap: 5px;
    }

}

.navbar {
    height: 68px;
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    background: #061a2b;
    color: #ffffff;

    border-bottom: 2px solid #1769aa;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.12);
}

.navbar a {
    color: #ffffff;
}

.navbar-links {
    display: flex;
    align-items: center;

    gap: 24px;
}

.navbar-links a {
    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 600;

    opacity: 0.9;
}

.navbar-links a:hover {
    color: #ffffff;
    opacity: 1;
}

/* =========================================================
   MANAGE FORMS - FINAL CONTRAST FIX
   ========================================================= */

/* Page background and normal text */

body {
    background: #f1f4f7;
    color: #111111;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    height: 68px !important;
    min-height: 68px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 0 32px !important;

    background: #061a2b !important;
    color: #ffffff !important;

    border-bottom: 2px solid #1769aa !important;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.12) !important;
}

.navbar a,
.navbar-brand,
.navbar-links a {
    color: #ffffff !important;
}


/* =========================================================
   PAGE HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4 {
    color: #06101d !important;
}

h1 {
    font-size: 2rem !important;
    font-weight: 750 !important;
}

h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}


/* =========================================================
   FORM TITLE / DESCRIPTION
   ========================================================= */

.form-header,
.form-title,
.form-details {
    color: #111111 !important;
}

.form-header h1,
.form-header h2,
.form-header h3,
.form-title h1,
.form-title h2,
.form-title h3 {
    color: #06101d !important;
}

.form-header p,
.form-details p {
    color: #333333 !important;
}


/* =========================================================
   FORM FIELDS SECTION
   ========================================================= */

.form-fields,
.fields-section,
.form-fields-section {
    color: #111111 !important;
}

.form-fields h1,
.form-fields h2,
.form-fields h3,
.fields-section h1,
.fields-section h2,
.fields-section h3,
.form-fields-section h1,
.form-fields-section h2,
.form-fields-section h3 {
    color: #06101d !important;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-container {
    background: #ffffff !important;

    border: 1px solid #cbd6df !important;

    border-radius: 14px !important;

    overflow-x: auto !important;
}


/* TABLE HEADER */

table th {
    background: #0b243a !important;

    color: #ffffff !important;

    padding: 14px 16px !important;

    text-align: left !important;

    font-size: 0.88rem !important;

    font-weight: 700 !important;

    border-bottom: 2px solid #1769aa !important;
}


/* TABLE CELLS */

table td {
    background: #ffffff !important;

    color: #111111 !important;

    padding: 14px 16px !important;

    border-bottom: 1px solid #d5dce4 !important;
}


/* Alternating rows */

table tbody tr:nth-child(even) td {
    background: #f7f9fb !important;
}


/* Hover */

table tbody tr:hover td {
    background: #eaf2f8 !important;
}


/* =========================================================
   STATUS
   ========================================================= */

.status,
.badge {
    color: #087a50 !important;

    background: #e6f5ee !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

button,
.btn {
    color: #ffffff !important;
}

.btn-secondary {
    background: #dfe6ec !important;
    color: #111111 !important;
}

.btn-secondary:hover {
    background: #cbd5df !important;
    color: #000000 !important;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: #1769aa;
}

a:hover {
    color: #0e4f83;
}


/* =========================================================
   GENERAL PARAGRAPHS
   ========================================================= */

p {
    color: #333333 !important;
}


/* =========================================================
   SMALL TEXT
   ========================================================= */

small,
.muted {
    color: #555555 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .navbar {
        height: 62px !important;
        min-height: 62px !important;

        padding: 0 18px !important;
    }

    h1 {
        font-size: 1.7rem !important;
    }

    h2 {
        font-size: 1.35rem !important;
    }

    table th,
    table td {
        padding: 11px 12px !important;
    }

}

/* =========================================================
   VIEW FORM PAGE
   ========================================================= */

.view-form-page {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 42px 0 70px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.view-form-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    padding-bottom: 25px;

    border-bottom: 1px solid #d4dde5;
}

.page-kicker,
.section-kicker {
    margin: 0 0 7px;

    color: #1769aa !important;

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.13em;
}

.view-form-header h1 {
    margin: 0;

    color: #06101d !important;

    font-size: 2.5rem !important;

    font-weight: 800 !important;

    letter-spacing: -0.035em;
}

.form-description {
    margin: 9px 0 0;

    color: #4b5e6d !important;

    font-size: 1rem;
}


/* =========================================================
   ACTIONS — IMPORTANT
   These are now directly under the header.
   ========================================================= */

.view-form-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin: 22px 0 28px;
}

.page-action {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 17px;

    border-radius: 9px;

    font-weight: 700;

    text-decoration: none;
}

.page-action.primary {
    background: #1479bd;

    color: #ffffff !important;
}

.page-action.primary:hover {
    background: #0d659f;

    color: #ffffff !important;
}

.page-action.secondary {
    background: #e2e8ee;

    color: #172b3d !important;
}

.page-action.secondary:hover {
    background: #d2dbe3;

    color: #06101d !important;
}


/* =========================================================
   FORM SUMMARY
   ========================================================= */

.form-summary {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin-bottom: 38px;
}

.summary-item {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #d5dfe7;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-label {
    display: block;

    margin-bottom: 4px;

    color: #617484;

    font-size: 0.8rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}

.summary-item strong {
    color: #06101d;

    font-size: 1.35rem;
}

.summary-active {
    color: #087a50 !important;
}

.summary-inactive {
    color: #9a5b00 !important;
}


/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.content-section {
    margin-bottom: 42px;
}

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}

.section-heading h2 {
    margin: 0;

    color: #06101d !important;

    font-size: 1.65rem !important;

    font-weight: 750 !important;
}

.field-count {
    color: #5d7180;

    font-size: 0.85rem;

    font-weight: 650;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-container {
    overflow-x: auto;

    background: #ffffff;

    border: 1px solid #ccd7df;

    border-radius: 13px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.05);
}

.table-container table {
    width: 100%;

    min-width: 700px;

    border-collapse: collapse;
}

.table-container th {
    padding: 14px 16px;

    background: #0b243a !important;

    color: #ffffff !important;

    border-bottom: 2px solid #1769aa;

    font-size: 0.82rem;

    font-weight: 750;

    text-align: left;
}

.table-container td {
    padding: 14px 16px;

    background: #ffffff !important;

    color: #17202a !important;

    border-bottom: 1px solid #d9e0e6;

    font-size: 0.92rem;
}

.table-container tbody tr:nth-child(even) td {
    background: #f7f9fb !important;
}

.table-container tbody tr:hover td {
    background: #edf4f8 !important;
}

.table-container tbody tr:last-child td {
    border-bottom: none;
}

.field-name-cell {
    color: #06101d !important;

    font-weight: 700;
}


/* =========================================================
   REQUIRED / OPTIONAL
   ========================================================= */

.required-badge,
.optional-badge {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    border-radius: 999px;

    font-size: 0.72rem;

    font-weight: 750;
}

.required-badge {
    background: #e7f2fb;

    color: #145c88 !important;
}

.optional-badge {
    background: #edf0f3;

    color: #566875 !important;
}


/* =========================================================
   TABLE ACTION
   ========================================================= */

.table-action {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 7px 13px;

    background: #1479bd;

    color: #ffffff !important;

    border-radius: 7px;

    font-size: 0.82rem;

    font-weight: 700;
}

.table-action:hover {
    background: #0d659f;

    color: #ffffff !important;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 42px 25px;

    background: #ffffff;

    border: 1px dashed #cbd6df;

    border-radius: 13px;

    text-align: center;
}

.empty-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 13px;

    background: #e6f5ee;

    border-radius: 50%;

    color: #087a50;

    font-weight: 800;
}

.empty-state h3 {
    margin-bottom: 5px;

    color: #111111 !important;
}

.empty-state p {
    margin: 0;

    color: #5b6d79 !important;
}


/* =========================================================
   STATUS
   ========================================================= */

.form-status {
    flex-shrink: 0;
}

.form-status .status {
    min-width: 85px;

    justify-content: center;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .view-form-page {
        width: calc(100% - 24px);

        padding-top: 28px;
    }

    .view-form-header {
        flex-direction: column;

        gap: 15px;
    }

    .view-form-header h1 {
        font-size: 2rem !important;
    }

    .view-form-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .page-action {
        width: 100%;
    }

    .form-summary {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }

}

/* =========================================================
   VIEW FORM — SUBMISSION MEDIA
   ========================================================= */

.submissions-table {
    overflow-x: auto;
}


/* =========================================================
   PHOTO THUMBNAILS
   ========================================================= */

.photo-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;
}

.submission-photo {
    width: 72px;
    height: 72px;

    object-fit: cover;

    display: block;

    border-radius: 8px;

    border: 1px solid #cbd6df;

    background: #f4f7f9;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.submission-photo:hover {
    transform: scale(1.06);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   PDF BUTTON
   ========================================================= */

.pdf-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 13px;

    background: #1769aa;

    color: #ffffff !important;

    border-radius: 7px;

    font-size: 0.8rem;

    font-weight: 700;

    white-space: nowrap;
}

.pdf-button:hover {
    background: #0e4f83;

    color: #ffffff !important;
}


/* =========================================================
   NORMAL SUBMISSION VALUES
   ========================================================= */

.submission-value {
    color: #17202a !important;

    font-weight: 500;
}

.empty-value {
    color: #8a98a4 !important;
}


/* =========================================================
   SUBMISSION ACTIONS
   ========================================================= */

.submission-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.table-action {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    background: #1479bd;

    color: #ffffff !important;

    border-radius: 7px;

    font-size: 0.78rem;

    font-weight: 700;

    white-space: nowrap;
}

.table-action:hover {
    background: #0d659f;

    color: #ffffff !important;
}

.edit-action {
    background: #e1e7ed;

    color: #172b3d !important;
}

.edit-action:hover {
    background: #ccd6df;

    color: #06101d !important;
}


/* =========================================================
   SUBMISSION TABLE ROW HEIGHT
   ========================================================= */

.submissions-table td {
    vertical-align: middle;

    min-height: 88px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .submission-photo {
        width: 60px;
        height: 60px;
    }

    .submission-actions {
        flex-direction: column;
    }

    .table-action {
        width: 100%;
    }

}

/* =========================================================
   DYNAMIC SUBMISSION TABLE
   ========================================================= */

.submissions-table {
    overflow-x: auto;
}

.submissions-table table {
    min-width: 900px;
}


/* Photo thumbnail */

.photo-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;
}

.submission-photo {
    width: 72px;
    height: 72px;

    object-fit: cover;

    display: block;

    border-radius: 8px;

    border: 1px solid #cbd6df;

    background: #f4f7f9;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.submission-photo:hover {
    transform: scale(1.06);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.16);
}


/* PDF button */

.pdf-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 13px;

    background: #1769aa;

    color: #ffffff !important;

    border-radius: 7px;

    font-size: 0.8rem;

    font-weight: 700;

    white-space: nowrap;
}

.pdf-button:hover {
    background: #0e4f83;

    color: #ffffff !important;
}


/* Normal values */

.submission-value {
    color: #17202a !important;

    font-weight: 500;
}

.empty-value {
    color: #8a98a4 !important;
}


/* Actions */

.submission-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

/* =========================================
   STICKY NAVBAR
========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}