@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;800;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: white;
    padding: 28px 28px 18px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #0b1622;
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 14, 22, 0.90) 0%,
            rgba(8, 14, 22, 0.74) 34%,
            rgba(8, 14, 22, 0.48) 62%,
            rgba(8, 14, 22, 0.62) 100%
        ),
        url("../images/watchers_header_banner.png");
    background-position: center center, 88% center;
    background-size: cover, auto 88%;
    background-repeat: no-repeat, no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
}

header h1 {
    margin: 0 0 20px;
    width: max-content;

    font-family:
        "Orbitron",
        "Arial Black",
        "Segoe UI Black",
        sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.55rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.035em;
    text-transform: uppercase;

    color: #dff4ff;
    background:
        linear-gradient(
            180deg,
            #f4fbff 0%,
            #b8e5ff 28%,
            #4ea8df 62%,
            #d8f2ff 100%
        );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    -webkit-text-stroke: 1px rgba(186, 226, 250, 0.32);

    text-shadow:
        0 0 8px rgba(52, 169, 245, 0.46),
        0 0 18px rgba(52, 169, 245, 0.24),
        0 3px 3px rgba(0, 0, 0, 0.90);
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

nav a,
.nav-button {
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    text-decoration: none;
    background: rgba(15, 25, 36, 0.88);
    padding: 10px 16px;
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

nav a:hover,
.nav-button:hover,
nav a:focus-visible,
.nav-button:focus-visible {
    background: rgba(41, 64, 84, 0.96);
    border-color: rgba(255, 178, 107, 0.92);
    transform: translateY(-1px);
    outline: none;
}

.nav-form {
    margin: 0;
}

main {
    width: min(900px, 92%);
    margin: 40px auto;
    background: white;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

h2 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    max-width: 480px;
    padding: 11px;
    border: 1px solid #bcc5ce;
    border-radius: 6px;
    font: inherit;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.button {
    border: 0;
    background: #1f5f8b;
    color: white;
    padding: 11px 18px;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
}

.button:hover {
    background: #174968;
}

.message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 6px;
}

.message.success {
    background: #e7f6ec;
    border: 1px solid #80c696;
}

.message.warning {
    background: #fff4d6;
    border: 1px solid #e2bd58;
}

.message.error,
.form-error {
    color: #9f1d20;
}

.message.error {
    background: #fde8e8;
    border: 1px solid #d78b8d;
}

.form-error {
    margin: 6px 0 0;
    font-size: 0.9rem;
}

.member-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #f8fafb;
}

.member-card h3 {
    margin: 0 0 8px;
}

.member-card p {
    margin: 0;
    line-height: 1.5;
}

.button.secondary {
    background: #6b7280;
}

.button.secondary:hover {
    background: #4b5563;
}

.admin-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
}

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

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #d8dee4;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #eef2f5;
}

.role-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-form select {
    padding: 9px;
    border: 1px solid #bcc5ce;
    border-radius: 6px;
    font: inherit;
}

@media (max-width: 720px) {
    header {
        padding: 22px 18px 15px;
        min-height: 190px;
        background-position: center center, 82% center;
        background-size: cover, auto 82%;
    }

    header h1 {
        margin-bottom: 18px;
    }

    nav {
        gap: 8px;
    }

    nav a,
    .nav-button {
        padding: 9px 12px;
        font-size: 0.95rem;
    }

    main {
        width: min(94%, 900px);
        margin: 24px auto;
        padding: 24px;
    }
}



/* WATCHERS LAB PANORAMA HEADER — 2026-07-02 */
header {
    min-height: 220px;
    padding: 28px 28px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: #071522;
    background-image:
        linear-gradient(
            90deg,
            rgba(5, 13, 22, 0.84) 0%,
            rgba(5, 13, 22, 0.64) 30%,
            rgba(5, 13, 22, 0.34) 58%,
            rgba(5, 13, 22, 0.44) 100%
        ),
        url("../images/watchers_header_banner_panorama.png");

    background-position: center center, 58% center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
}

@media (max-width: 1000px) {
    header {
        background-position: center center, 64% center;
        background-size: cover, cover;
    }
}


/* WATCHERS LAB INNER PAGE BACKGROUND START */

body:not(:has(.home-dashboard)) {
    min-height: 100vh;
    background-color: #071522;
    background-image:
        radial-gradient(
            circle at 12% 18%,
            rgba(47, 126, 174, 0.34) 0%,
            rgba(47, 126, 174, 0.12) 24%,
            transparent 45%
        ),
        radial-gradient(
            circle at 88% 72%,
            rgba(117, 161, 188, 0.25) 0%,
            rgba(117, 161, 188, 0.08) 30%,
            transparent 52%
        ),
        linear-gradient(
            180deg,
            #071522 0%,
            #0a1d2c 28%,
            #123047 62%,
            #35586e 82%,
            #8397a5 100%
        );
    background-attachment: fixed;
}

body:not(:has(.home-dashboard)) main {
    border: 1px solid rgba(190, 215, 231, 0.82);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(242, 247, 250, 0.96) 100%
        );
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.34),
        0 4px 14px rgba(6, 25, 40, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* WATCHERS LAB INNER PAGE BACKGROUND END */


/* WATCHERS LAB LARGE HOME TITLE START */

body:has(.home-dashboard) header h1 {
    font-size: clamp(3.4rem, 6.25vw, 6rem);
    line-height: 0.94;
    letter-spacing: 0.025em;
}

@media (max-width: 720px) {
    body:has(.home-dashboard) header h1 {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
        line-height: 1;
        letter-spacing: 0.018em;
    }
}

/* WATCHERS LAB LARGE HOME TITLE END */

/* WATCHERS LAB HOME DASHBOARD START */

main:has(.home-dashboard) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 32px 34px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.home-dashboard {
    width: 100%;
}

.home-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "cyber threats"
        "tech logo";
    gap: 24px;
    align-items: stretch;
}

.news-pane {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #c9d5de;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 9px 26px rgba(20, 42, 61, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.news-pane-cyber {
    grid-area: cyber;
}

.news-pane-threats {
    grid-area: threats;
}

.news-pane-tech {
    grid-area: tech;
}

.news-pane-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 22px 18px;
    border-bottom: 1px solid #244860;
    color: #ecf8ff;
    background:
        linear-gradient(
            135deg,
            #071522 0%,
            #102d42 58%,
            #185170 100%
        );
}

.news-pane-heading h2 {
    margin: 3px 0 0;
    font-family:
        "Orbitron",
        "Arial Black",
        "Segoe UI Black",
        sans-serif;
    font-size: clamp(1.18rem, 1.45vw, 1.58rem);
    line-height: 1.2;
    letter-spacing: 0.025em;
}

.news-pane-kicker {
    margin: 0;
    color: #7fd5ff;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.news-pane-status {
    flex-shrink: 0;
    padding: 6px 9px;
    border: 1px solid rgba(119, 207, 255, 0.48);
    border-radius: 999px;
    color: #cbedff;
    background: rgba(12, 40, 59, 0.78);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-item-list {
    padding: 4px 20px 8px;
}

.news-item {
    padding: 16px 2px 17px;
    border-bottom: 1px solid #dce4ea;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item-category {
    margin: 0 0 5px;
    color: #2474a2;
    font-size: 0.71rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-item h3 {
    margin: 0 0 7px;
    color: #172c3c;
    font-size: 1rem;
    line-height: 1.35;
}

.news-item p:last-child {
    margin: 0;
    color: #53636f;
    font-size: 0.90rem;
    line-height: 1.52;
}

.home-logo-cell {
    grid-area: logo;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
}

.home-logo-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 4.05 / 1;
    overflow: hidden;
    border: 1px solid rgba(60, 112, 150, 0.62);
    border-radius: 11px;
    background: #071522;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.home-logo-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 40%;
}

.home-logo-banner-slogan {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 20px 16px;
    border-top: 1px solid rgba(199, 133, 66, 0.72);
    background:
        linear-gradient(
            180deg,
            rgba(4, 12, 21, 0.36) 0%,
            rgba(4, 13, 23, 0.94) 38%,
            rgba(4, 12, 21, 0.99) 100%
        );
    text-align: center;
}

.home-logo-banner-slogan span {
    display: inline-block;
    font-family:
        "Orbitron",
        "Arial Black",
        "Segoe UI Black",
        sans-serif;
    font-size: clamp(0.92rem, 1.22vw, 1.32rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.25;
    letter-spacing: 0.095em;
    text-transform: uppercase;
    background:
        linear-gradient(
            90deg,
            #edf9ff 0%,
            #71c9ff 48%,
            #f0b26d 100%
        );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow:
        0 0 10px rgba(52, 169, 245, 0.28),
        0 2px 2px rgba(0, 0, 0, 0.80);
    transform: skewX(-4deg);
}

@media (max-width: 1050px) {
    .home-dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cyber"
            "threats"
            "tech"
            "logo";
    }

    .home-logo-cell {
        justify-content: center;
    }

    .home-logo-banner {
        width: min(100%, 840px);
    }
}

@media (max-width: 720px) {
    main:has(.home-dashboard) {
        padding: 22px 18px 28px;
    }

    .news-pane-heading {
        flex-direction: column;
        gap: 10px;
    }

    .home-logo-banner {
        aspect-ratio: 3.2 / 1;
    }

    .home-logo-banner-slogan {
        padding: 11px 12px 13px;
    }

    .home-logo-banner-slogan span {
        font-size: 0.78rem;
        letter-spacing: 0.06em;
    }
}


/* WATCHERS LAB LIVE NEWS START */

.news-pane-status.is-live {
    border-color: rgba(121, 231, 180, 0.58);
    color: #c9ffe2;
    background: rgba(13, 73, 52, 0.72);
}

.news-pane-status.is-fallback {
    border-color: rgba(255, 196, 107, 0.64);
    color: #ffe2ad;
    background: rgba(91, 55, 12, 0.72);
}

.news-item h3 a {
    color: inherit;
    text-decoration: none;
}

.news-item h3 a:hover,
.news-item h3 a:focus-visible {
    color: #126d9f;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.news-item h3 a:focus-visible {
    border-radius: 3px;
    outline: 2px solid #2474a2;
    outline-offset: 3px;
}

.news-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin: 0 0 7px;
    color: #71818c;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

/* WATCHERS LAB LIVE NEWS END */

/* WATCHERS LAB HOME DASHBOARD END */

/* Combined account page */
.account-intro {
    margin-bottom: 26px;
}

.account-intro p {
    margin-bottom: 0;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.account-panel {
    padding: 24px;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    background: #f8fafc;
}

.account-panel h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #173d57;
}

.account-panel .form-group input[type="text"],
.account-panel .form-group input[type="password"] {
    max-width: none;
}

@media (max-width: 760px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* NAVIGATION, ACCOUNT, CONTACT, AND ADMIN INBOX UPDATE */
.account-choice-row,
.inbox-filters,
.admin-message-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.account-register-panel,
.login-card,
.contact-page,
.contact-message-detail {
    max-width: 820px;
    margin: 0 auto;
}

.form-secondary-link {
    margin-top: 22px;
}

.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 11px;
    border: 1px solid #bcc5ce;
    border-radius: 6px;
    font: inherit;
}

.two-column-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.security-notice {
    margin: 20px 0 26px;
    padding: 16px;
    border-left: 5px solid #b36a00;
    background: #fff4d6;
    line-height: 1.55;
}

.admin-summary-card {
    margin: 22px 0;
    padding: 20px;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #f8fafb;
}

.inbox-filters {
    margin: 22px 0;
}

.active-filter {
    outline: 3px solid rgba(31, 95, 139, 0.28);
}

.contact-status-new {
    font-weight: 700;
    background: #eef8ff;
}

.contact-message-meta {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px 18px;
    margin: 24px 0;
}

.contact-message-meta dt {
    font-weight: 700;
}

.contact-message-meta dd {
    margin: 0;
}

.contact-message-body {
    min-height: 180px;
    padding: 20px;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #f8fafb;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.admin-message-actions {
    margin-top: 22px;
}

@media (max-width: 720px) {
    .two-column-form-grid,
    .contact-message-meta {
        grid-template-columns: 1fr;
    }
}
