css
/* =========================================================
   RIGSAM GIS APPLICATION SHELL
   base.html

   Design Language:
   Earth + Nature + Water + Infrastructure + Data
========================================================= */


/* =========================================================
   ROOT / BASE
========================================================= */

:root {
    --rs-forest-deep: #1c2e27;
    --rs-forest: #26392f;
    --rs-forest-soft: #354f44;

    --rs-green: #668658;
    --rs-green-dark: #526f4a;

    --rs-teal: #39818a;
    --rs-teal-dark: #286872;

    --rs-earth: #b66a45;
    --rs-earth-dark: #965438;

    --rs-olive: #9b924c;

    --rs-bg: #f5f4ed;
    --rs-bg-soft: #eef1e8;
    --rs-white: #ffffff;

    --rs-border: #d9ded5;
    --rs-border-soft: #e4e7df;

    --rs-text: #30413a;
    --rs-text-soft: #64716a;
    --rs-text-muted: #89938d;

    --rs-danger: #bd5d50;
    --rs-warning: #b48a42;
    --rs-success: #5e8058;
    --rs-info: #39818a;
}


/* =========================================================
   RESET / GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--rs-text);
    background: var(--rs-bg);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.rs-header {
    position: relative;
    z-index: 1000;

    width: 100%;
    height: 72px;

    background:
        linear-gradient(
            110deg,
            #1c2e27 0%,
            #26392f 55%,
            #31483d 100%
        );

    border-bottom: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 5px 18px rgba(27,45,37,0.10);
}


.rs-header-inner {
    width: 100%;
    max-width: 1500px;

    height: 100%;

    margin: auto;
    padding: 0 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   BRAND
========================================================= */

.rs-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    color: #ffffff;
    text-decoration: none;
}


.rs-brand-mark {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--rs-earth) 0%,
            var(--rs-green) 48%,
            var(--rs-teal) 100%
        );

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.7px;

    box-shadow:
        0 6px 16px rgba(0,0,0,0.20);

    position: relative;
    overflow: hidden;
}


.rs-brand-mark::after {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    right: -5px;
    bottom: -6px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.35);
}


.rs-brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}


.rs-brand-text strong {
    color: #ffffff;

    font-size: 17px;
    font-weight: 650;

    letter-spacing: 0.2px;
}


.rs-brand-text small {
    margin-top: 4px;

    color: rgba(255,255,255,0.48);

    font-size: 8px;
    font-weight: 500;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* =========================================================
   NAVIGATION
========================================================= */

.rs-navigation {
    display: flex;
    align-items: center;

    gap: 23px;

    height: 100%;
}


.rs-nav-link {
    position: relative;

    padding: 7px 0;

    color: rgba(255,255,255,0.66);

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
        color 0.2s ease;
}


.rs-nav-link:hover {
    color: #ffffff;
}


.rs-nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -5px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--rs-green),
            var(--rs-teal)
        );

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform 0.22s ease;
}


.rs-nav-link:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   USER PROFILE
========================================================= */

.rs-user {
    display: flex;
    align-items: center;

    gap: 9px;

    padding-left: 12px;

    border-left:
        1px solid rgba(255,255,255,0.12);

    color: #ffffff;

    text-decoration: none;
}


.rs-user-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--rs-green),
            var(--rs-teal)
        );

    font-size: 10px;
    font-weight: 700;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.18);
}


.rs-user-details {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}


.rs-user-details strong {
    max-width: 130px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #ffffff;

    font-size: 11px;
    font-weight: 600;
}


.rs-user-details small {
    margin-top: 3px;

    color: rgba(255,255,255,0.42);

    font-size: 8px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.6px;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.rs-login {
    min-height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border:
        1px solid rgba(255,255,255,0.28);

    border-radius: 5px;

    color: #ffffff;

    background:
        rgba(255,255,255,0.045);

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.rs-login:hover {
    background:
        rgba(255,255,255,0.11);

    border-color:
        rgba(255,255,255,0.55);

    transform:
        translateY(-1px);
}


/* =========================================================
   LOGOUT
========================================================= */

.rs-logout {
    min-height: 33px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 13px;

    border:
        1px solid rgba(255,255,255,0.14);

    border-radius: 5px;

    color: rgba(255,255,255,0.66);

    background:
        rgba(255,255,255,0.025);

    text-decoration: none;

    font-size: 11px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.rs-logout:hover {
    color: #ffffff;

    background:
        rgba(182,106,69,0.20);

    border-color:
        rgba(182,106,69,0.45);
}


/* =========================================================
   MAIN APPLICATION AREA
========================================================= */

.rs-main {
    min-height:
        calc(100vh - 130px);

    padding: 0;

    background:
        linear-gradient(
            180deg,
            #f5f4ed 0%,
            #eef1e8 100%
        );
}


/* =========================================================
   PAGE NAVIGATION / BACK BUTTON
========================================================= */

.rs-page-navigation {
    max-width: 1500px;

    margin: auto;

    padding:
        14px 34px 0;
}


.rs-back-button {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding:
        7px 11px;

    border:
        1px solid var(--rs-border);

    border-radius: 5px;

    background:
        rgba(255,255,255,0.90);

    color: var(--rs-text-soft);

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    box-shadow:
        0 2px 8px rgba(39,58,48,0.04);

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.rs-back-button span {
    color: var(--rs-green);

    font-size: 15px;

    line-height: 1;
}


.rs-back-button:hover {
    color: var(--rs-green-dark);

    border-color:
        rgba(102,134,88,0.45);

    background:
        #ffffff;

    box-shadow:
        0 4px 12px rgba(39,58,48,0.08);
}


/* =========================================================
   CONTENT WRAPPER
========================================================= */

.rs-content-wrapper {
    width: 100%;
    max-width: 1500px;

    margin: auto;
}


/* =========================================================
   FLASH MESSAGES
========================================================= */

.rs-flash-container {
    padding:
        16px 34px 0;
}


.rs-flash-message {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 42px;

    padding:
        9px 13px;

    border:
        1px solid var(--rs-border);

    border-radius: 6px;

    background:
        rgba(255,255,255,0.95);

    color: var(--rs-text-soft);

    font-size: 12px;

    box-shadow:
        0 3px 12px rgba(39,58,48,0.05);
}


.rs-flash-indicator {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--rs-info);
}


/* SUCCESS */

.rs-flash-success {
    border-color:
        rgba(94,128,88,0.28);

    background:
        rgba(94,128,88,0.045);
}


.rs-flash-success .rs-flash-indicator {
    background:
        var(--rs-success);
}


/* ERROR / DANGER */

.rs-flash-error,
.rs-flash-danger {
    border-color:
        rgba(189,93,80,0.28);

    background:
        rgba(189,93,80,0.045);
}


.rs-flash-error .rs-flash-indicator,
.rs-flash-danger .rs-flash-indicator {
    background:
        var(--rs-danger);
}


/* WARNING */

.rs-flash-warning {
    border-color:
        rgba(180,138,66,0.30);

    background:
        rgba(180,138,66,0.055);
}


.rs-flash-warning .rs-flash-indicator {
    background:
        var(--rs-warning);
}


/* INFO */

.rs-flash-info {
    border-color:
        rgba(57,129,138,0.27);

    background:
        rgba(57,129,138,0.045);
}


.rs-flash-info .rs-flash-indicator {
    background:
        var(--rs-info);
}


/* =========================================================
   ASSET CONTAINER
========================================================= */

.asset-container {
    width: 100%;

    min-height: 200px;
}


/* =========================================================
   COMMON APPLICATION CARD
   Keeps older application pages visually compatible.
========================================================= */

.card {
    background: #ffffff;

    border:
        1px solid var(--rs-border-soft);

    border-radius: 8px;

    box-shadow:
        0 5px 18px rgba(39,58,48,0.055);
}


/* =========================================================
   FOOTER
========================================================= */

.rs-footer {
    width: 100%;

    min-height: 58px;

    background:
        linear-gradient(
            110deg,
            #182921 0%,
            #1c2e27 60%,
            #26392f 100%
        );

    color: #ffffff;

    border-top:
        1px solid rgba(255,255,255,0.05);
}


.rs-footer-inner {
    max-width: 1500px;

    min-height: 58px;

    margin: auto;

    padding:
        0 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.rs-footer-brand {
    display: flex;
    align-items: center;

    gap: 9px;
}


.rs-footer-brand strong {
    color: #ffffff;

    font-size: 11px;
    font-weight: 650;
}


.rs-footer-brand span {
    color:
        rgba(255,255,255,0.40);

    font-size: 9px;
}


.rs-footer-copy {
    color:
        rgba(255,255,255,0.38);

    font-size: 9px;
}


.footer-divider {
    padding:
        0 6px;

    color:
        rgba(255,255,255,0.20);
}


/* =========================================================
   SMALL SPATIAL ACCENT
========================================================= */

.rs-footer::after {
    content: "";

    display: block;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--rs-earth) 0%,
            var(--rs-green) 38%,
            var(--rs-teal) 70%,
            var(--rs-olive) 100%
        );

    opacity: 0.65;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .rs-header-inner {
        padding:
            0 24px;
    }

    .rs-navigation {
        gap: 16px;
    }

    .rs-page-navigation {
        padding-left: 24px;
        padding-right: 24px;
    }

    .rs-flash-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .rs-footer-inner {
        padding-left: 24px;
        padding-right: 24px;
    }
}


@media (max-width: 700px) {

    .rs-header {
        height: 64px;
    }


    .rs-header-inner {
        padding:
            0 18px;
    }


    .rs-brand-mark {
        width: 34px;
        height: 34px;

        border-radius: 7px;

        font-size: 10px;
    }


    .rs-brand-text strong {
        font-size: 15px;
    }


    .rs-brand-text small {
        display: none;
    }


    .rs-navigation {
        gap: 10px;
    }


    .rs-nav-link {
        display: none;
    }


    .rs-user-details {
        display: none;
    }


    .rs-user {
        padding-left: 0;

        border-left: 0;
    }


    .rs-user-avatar {
        width: 30px;
        height: 30px;
    }


    .rs-login,
    .rs-logout {
        min-height: 30px;

        padding:
            0 10px;

        font-size: 10px;
    }


    .rs-page-navigation {
        padding:
            12px 18px 0;
    }


    .rs-flash-container {
        padding:
            12px 18px 0;
    }


    .rs-footer-inner {
        min-height: 70px;

        padding:
            12px 18px;

        align-items: flex-start;

        flex-direction: column;

        justify-content: center;
    }


    .rs-footer-copy {
        line-height: 1.5;
    }
}


@media (max-width: 420px) {

    .rs-brand-text {
        display: none;
    }


    .rs-navigation {
        gap: 8px;
    }


    .rs-login,
    .rs-logout {
        padding:
            0 9px;
    }


    .rs-page-navigation {
        padding-left: 14px;
        padding-right: 14px;
    }


    .rs-flash-container {
        padding-left: 14px;
        padding-right: 14px;
    }


    .rs-footer-inner {
        padding-left: 14px;
        padding-right: 14px;
    }
}

