
/* =========================================
   SNPD - SOP KOMUNIKASI RADIO
   Stylesheet
========================================= */


/* =========================================
   1. ROOT VARIABLES
========================================= */

:root {
    color-scheme: dark;

    --bg: #090e17;
    --panel: #121b2a;
    --line: #293447;
    --text: #f5f7fb;
    --muted: #a2adbf;
    --red: #ed4756;
}


/* =========================================
   2. GLOBAL STYLES
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;

    min-height: 100vh;
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);

    background:
        linear-gradient(
            110deg,
            rgba(8, 13, 22, 0.94),
            rgba(8, 13, 22, 0.86)
        ),
        url("../../bg.png") center / cover fixed;

    background-color: var(--bg);
}

a {
    color: inherit;
}


/* =========================================
   3. MAIN CONTAINER
========================================= */

.wrap {
    flex: 1;

    width: 100%;
    max-width: 1260px;

    margin: 0 auto;
    padding: 64px 24px 90px;
}


/* =========================================
   4. BREADCRUMB
========================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    font-size: 12px;
    letter-spacing: 1px;

    color: var(--muted);
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb strong {
    color: var(--red);
}


/* =========================================
   5. HERO SECTION
========================================= */

.hero {
    max-width: 850px;
    margin: 38px 0 48px;
}

.tag {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;

    color: var(--red);
}

.hero h1 {
    margin: 14px 0;

    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero em {
    font-style: normal;
    color: var(--red);
}

.hero p,
.panel > p {
    font-size: 16px;
    line-height: 1.7;

    color: var(--muted);
}


/* =========================================
   6. CONTENT PANEL
========================================= */

.panel {
    padding: 24px;

    background: #111b2a;

    border: 1px solid var(--line);
    border-radius: 12px;
}


/* =========================================
   7. SECTION HEADER
========================================= */

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 20px;
    padding-bottom: 15px;

    border-bottom: 1px solid var(--line);
}

.section-head h2 {
    margin: 0;

    font-size: 19px;
    letter-spacing: 0.6px;
}

.section-head span {
    font-size: 12px;
    color: var(--muted);
}


/* =========================================
   8. RADIO REPORT FORMAT
========================================= */

.report-format {
    margin: 18px 0;
    padding: 20px;

    background: #090f19;

    border: 1px solid #435066;
    border-left: 3px solid var(--red);
    border-radius: 8px;

    line-height: 1.8;
    font-weight: 700;
    letter-spacing: 0.3px;

    overflow-wrap: anywhere;
}


/* =========================================
   9. COPY FORMAT BUTTON
========================================= */

.secondary-btn {
    padding: 12px 18px;

    background: transparent;

    border: 1px solid #435066;
    border-radius: 7px;

    color: var(--text);
    font-weight: 800;

    cursor: pointer;
}

.copy-status {
    margin-left: 12px;

    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   10. RADIO CODES SECTION
========================================= */

.codes {
    margin-top: 65px;
}


/* =========================================
   11. SEARCH & FILTER TOOLS
========================================= */

.tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    padding: 17px;

    background: #101a29;

    border: 1px solid var(--line);
    border-radius: 12px;
}

.tools label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;

    color: var(--muted);
}

.tools input,
.tools select {
    min-height: 44px;
    padding: 12px;

    background: #090f19;

    color: var(--text);

    border: 1px solid #435066;
    border-radius: 7px;

    font: inherit;
}


/* =========================================
   12. SEARCH INPUT
========================================= */

.tools input {
    flex: 1;
    min-width: 170px;

    font-size: 14px;
}

.tools input::placeholder {
    font-size: 14px;
    font-style: italic;

    color: #8b95a7;
    opacity: 1;
}


/* =========================================
   13. FILTER SELECT
========================================= */

.tools select {
    min-width: 150px;
}


/* =========================================
   14. RESET BUTTON
========================================= */

.tools button {
    min-height: 44px;
    padding: 12px 18px;

    background: var(--red);

    border: 0;
    border-radius: 7px;

    color: #ffffff;
    font-weight: 800;

    cursor: pointer;
}


/* =========================================
   15. FOCUS STATES
========================================= */

.tools :is(input, select, button):focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}


/* =========================================
   16. RESULT COUNTER
========================================= */

.count {
    margin: 22px 0;

    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   17. TABLE CONTAINER
========================================= */

.table-wrap {
    overflow-x: auto;

    background: #111b2a;

    border: 1px solid var(--line);
    border-radius: 12px;
}


/* =========================================
   18. RADIO CODES TABLE
========================================= */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 20px;

    text-align: left;
    line-height: 1.5;

    border-bottom: 1px solid var(--line);
}

th {
    background: #1a2738;

    font-size: 12px;
    letter-spacing: 1px;
}

td {
    font-size: 14px;
    color: #d4dbe5;
}

tr:last-child td {
    border-bottom: 0;
}


/* =========================================
   19. RADIO CODE COLUMN
========================================= */

td.radio-code {
    width: 150px;

    white-space: nowrap;

    color: var(--red);

    font-size: 15px;
    font-weight: 800;
}


/* =========================================
   20. EMPTY SEARCH RESULT
========================================= */

.empty {
    padding: 30px;

    text-align: center;
    color: var(--muted);
}


/* =========================================
   21. INFORMATION NOTE
========================================= */

.note {
    margin-top: 28px;
    padding: 13px 17px;

    background: #172030;

    border-left: 3px solid var(--red);

    color: #b7c0cd;

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================
   22. FOOTER
========================================= */

footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;

    padding: 24px max(
        5%,
        calc((100vw - 1260px) / 2)
    );

    border-top: 1px solid var(--line);

    color: var(--muted);
    font-size: 12px;
}


/* =========================================
   23. RESPONSIVE MOBILE
========================================= */

@media (max-width: 650px) {

    body {
        background-attachment: scroll;
    }

    .wrap {
        padding: 40px 18px 65px;
    }

    .hero {
        margin: 28px 0 36px;
    }

    .hero p {
        font-size: 14px;
    }

    .panel {
        padding: 18px;
    }

    .section-head h2 {
        font-size: 16px;
    }

    .tools {
        flex-direction: column;
        align-items: stretch;
    }

    .tools input,
    .tools select,
    .tools button {
        width: 100%;
        min-width: 0;
    }

    .tools input {
        flex: none;
    }

    th,
    td {
        padding: 13px 12px;
    }

    td.radio-code {
        width: 95px;
    }

    footer {
        flex-direction: column;
        gap: 8px;

        padding: 20px 18px;
    }

}


/* =========================================
   24. ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}