/* =========================================================
   Penetratee V1
   styles.css
   ========================================================= */

:root {
    --bg: #111111;
    --surface: #1a1a1a;
    --text: #eaeaea;
    --pink: #ff4fa3;
    --cyan: #66d9ef;
    --border: #333333;
    --alert: #ff5a5a;
    --green: #00c853;

    --page-width: 96%;
    --page-max-width: 1400px;
    --radius: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 84px;
    padding-left: 2%;
    padding-right: 2%;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;

    background: var(--bg);
}

.navbar-logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    display: block;
    height: 70px;
    width: auto;
}

.theme-switch-button {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.theme-switch-image {
    display: block;
    height: 70px;
    width: auto;
}

.navbar-data {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 0.75rem;
    align-items: center;
    justify-items: center;

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

.navbar-item {
    display: grid;
    gap: 0.15rem;
    justify-items: center;
    font-size: 0.9rem;
}

.navbar-label {
    color: var(--cyan);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================================
   GENERAL PAGE
   ========================================================= */

.page-main {
    width: min(var(--page-max-width), var(--page-width));
    margin: 0 auto;
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1,
.msg-hero h1 {
    color: var(--pink);
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
}

.hero h2,
.msg-hero h2 {
    color: var(--cyan);
    margin-top: 0.5rem;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
}

.hero p {
    margin-top: 1rem;
    line-height: 1.5;
}

/* =========================================================
   PANELS
   ========================================================= */
/* @@@panels with borders and grayed, if you want to use, dissable the other!!!
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
*/
.panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1.5rem;
}


.panel h3 {
    color: var(--pink);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel p {
    margin-top: 0.75rem;
    line-height: 1.55;
}

/* =========================================================
   INDEX PAGE
   ========================================================= */

.index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.checkbox-group,
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    cursor: pointer;
}

.checkbox-group input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--pink);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0.75rem 1.4rem;

    border: 1px solid var(--pink);
    border-radius: 999px;
    background: var(--pink);
    color: var(--cyan);

    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* =========================================================
   3x3 CLICKABLE GRID
   ========================================================= */

.captcha-grid-wrapper {
    position: relative;
    width: min(100%, 520px);
    margin: 1rem auto;
    overflow: hidden;
    border-radius: var(--radius);
}

.coral-grid-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.captcha-grid {
    position: absolute;
    inset: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.captcha-grid button {
    background: transparent;
    border: 2mm solid rgba(234, 234, 234, 0.9);
    cursor: pointer;
}

.captcha-grid button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.captcha-grid button.selected {
    background: rgba(0, 200, 83, 0.2);
    box-shadow: inset 0 0 0 5px var(--green);
}

.captcha-grid button:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: -6px;
}

/* =========================================================
   HOME DASHBOARD
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.dashboard-panel {
    min-height: 260px;
}

.data-list {
    display: grid;
    gap: 0.8rem;
}

.data-row {
    display: grid;
    gap: 0.3rem;
}

.data-row span:first-child {
    color: var(--text);
}

.data-row span:last-child {
    color: var(--cyan);
    font-weight: 700;
}

.chart-placeholder {
    min-height: 90px;
    margin-bottom: 1rem;

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

    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--cyan);
}

.info-notice {
    width: min(720px, 100%);
    margin: 1.5rem auto 0 auto;
    padding: 1rem;

    display: flex;
    align-items: center;
    gap: 1rem;

    border: 1px solid var(--pink);
    border-radius: var(--radius);
    background: transparent;
    text-align: left;
}

.notice-icon {
    color: var(--pink);
    font-size: 2rem;
}

.notice-content h3 {
    color: var(--pink);
    margin-bottom: 0.35rem;
}

.actions-panel {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.action-button {
    position: relative;
    z-index: 2;
}

.mascot-image {
    position: absolute;
    right: 0;
    bottom: 0;

    width: min(70%, 260px);
    height: auto;
}

/* =========================================================
   MESSAGE PAGE
   ========================================================= */

.msg-main {
    min-height: calc(100vh - 180px);

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

.msg-hero {
    text-align: center;
}

/* =========================================================
   DEMO NOTE + FOOTER
   ========================================================= */

.demo-note {
    margin-top: 2rem;
    text-align: center;
    line-height: 1.6;
}

.site-footer {
    min-height: 80px;
    padding: 1.5rem 2%;

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

    background: var(--bg);
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--cyan);
    text-decoration: none;
}

/* =========================================================
   LIGHT THEME SUPPORT
   Values are applied by app.js through CSS variables.
   ========================================================= */

body.light .captcha-grid button {
    border-color: rgba(34, 34, 34, 0.9);
}

body.light .captcha-grid button:hover {
    background: rgba(0, 0, 0, 0.14);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 701px) and (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo-image,
    .theme-switch-image {
        height: 64px;
    }
}

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

@media (max-width: 700px) {
    .navbar {
        min-height: 100px;
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }

    .logo-image,
    .theme-switch-image {
        height: 58px;
    }

    .navbar-data {
        grid-template-columns: repeat(2, minmax(70px, 1fr));
        gap: 0.35rem;
    }

    .navbar-item {
        font-size: 0.8rem;
    }

    .navbar-label {
        font-size: 0.62rem;
    }

    .index-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 1.1rem;
    }

    .captcha-grid button {
        border-width: 2px;
    }

    .mascot-image {
        width: min(65%, 220px);
    }
}

/* new addition for minichart */

.mini-chart {
    width: 100%;
    display: grid;
    gap: 0.5rem;
}

.mini-chart-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 2rem;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.mini-chart-label,
.mini-chart-number {
    color: var(--cyan);
}

.mini-chart-bar-wrap {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(128, 128, 128, 0.25);
    overflow: hidden;
}

.mini-chart-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--pink);
}

.recent-activity-list {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}