@charset "UTF-8";

/* Neo-marine theme inspired by oplusm.fr */
:root {
    --bg: #0b1523;
    --bg-alt: #0e1d31;
    --panel: #0f1f35;
    --panel-strong: #0b1a2c;
    --surface: #10263d;
    --text: #eaf2ff;
    --subtle: #a3b9d3;
    --muted: #7f93ad;
    --border: rgba(255, 255, 255, 0.08);
    --primary: #256692;
    --primary-strong: #155477;
    --primary-soft: #2f7eae;
    --accent: #47c6f5;
    --accent-2: #7bd4ff;
    --success: #7ad89f;
    --warning: #f6c86e;
    --danger: #f17171;
    --shadow-sm: 0 14px 38px rgba(8, 14, 26, 0.24);
    --shadow-md: 0 28px 96px rgba(5, 10, 20, 0.42);
    --shadow-glow: 0 0 0 1px rgba(71, 198, 245, 0.20), 0 24px 80px rgba(37, 102, 146, 0.35);
}

html, body {
    background:
            radial-gradient(circle at 12% 18%, rgba(71, 198, 245, 0.08), transparent 34%),
            radial-gradient(circle at 82% 12%, rgba(37, 102, 146, 0.10), transparent 30%),
            linear-gradient(145deg, #0b1523 0%, #0f1f33 60%, #0b1523 100%);
    color: var(--text);
    font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.main { min-height: 100vh; }

.container {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ---- Brand bar & navigation ---- */
.top-banner {
    background: linear-gradient(135deg, rgba(37, 102, 146, 0.28), rgba(21, 84, 119, 0.18));
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 20;
}

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
}

.brand-left { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 64px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35)); }
.brand-text strong { display: block; font-size: 16px; letter-spacing: 0.02em; }
.brand-text .eyebrow { color: var(--subtle); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }

.brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--subtle);
    font-weight: 600;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(145deg, #5ef4a8, #1dd18a);
    box-shadow: 0 0 0 6px rgba(94, 244, 168, 0.14);
}

.top-menu {
    background: rgba(10, 18, 33, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    position: sticky;
    top: 0;
    z-index: 25;
}

ul.navigation {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

ul.navigation li {
    position: relative;
    float: none;
}

ul.navigation li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e9f3ff;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 12px;
    transition: color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

ul.navigation li a:hover {
    color: #ffffff;
    background: rgba(71, 198, 245, 0.12);
    transform: translateY(-1px);
}

ul.navigation li ul {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    min-width: 210px;
    flex-direction: column;
    gap: 4px;
}

ul.navigation li:hover ul { display: flex; }
ul.navigation ul li { background: transparent; width: 100%; }
ul.navigation ul li a {
    width: 100%;
    text-transform: none;
    font-weight: 600;
    border-radius: 10px;
}

/* ---- Layout shells ---- */
.main-wrapper { padding-top: 16px; }

.content {
    width: 92%;
    max-width: 1320px;
    background:
            radial-gradient(circle at 18% 14%, rgba(71, 198, 245, 0.08), transparent 38%),
            radial-gradient(circle at 82% 0%, rgba(37, 102, 146, 0.08), transparent 32%),
            linear-gradient(160deg, rgba(15, 31, 53, 0.92), rgba(11, 26, 44, 0.92));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 24px 28px;
    margin: 18px auto 32px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

section {
    margin: 0 0 14px 0;
}

section span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eef5ff;
    background: linear-gradient(90deg, rgba(37, 102, 146, 0.35), rgba(71, 198, 245, 0.18));
    padding: 7px 12px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 15px;
}

/* ---- Tiles / dashboard ---- */
.tileWrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 2px;
}

.tileWrapper a {
    margin: 0;
    padding: 16px 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(37, 102, 146, 0.18), rgba(10, 21, 36, 0.9));
    box-shadow: var(--shadow-sm);
    color: var(--subtle);
    font-weight: 700;
    text-align: left;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, color 140ms ease;
    min-height: 170px;
    position: relative;
    overflow: hidden;
}

.tileWrapper a:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(71, 198, 245, 0.14), transparent 36%);
    opacity: 0.8;
    pointer-events: none;
}

.tileWrapper a:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-md);
    border-color: rgba(71, 198, 245, 0.45);
    color: #f5fbff;
}

.tileWrapper .formatNumber {
    display: block;
    margin-top: 12px;
    font-size: 30px;
    color: var(--accent);
    font-weight: 800;
}

.baseTable {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #d6e4f5;
}
.baseRow { line-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.baseCell:first-child { color: #f1f5fb; font-weight: 600; }
.baseCell:nth-child(2) { color: var(--accent-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.formatNumber { font-variant-numeric: tabular-nums; }

/* ---- Forms & inputs ---- */
select,
input[type="text"],
input[type="number"],
input[type="password"],
textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 14px;
    width: 70%;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
    background: #0b1d2e;
    color: var(--text);
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(71, 198, 245, 0.28);
}

input[type="submit"],
input[type="button"],
button {
    min-width: 132px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background: linear-gradient(135deg, var(--primary-strong), #24b8e6);
    box-shadow: var(--shadow-sm);
    border-color: rgba(71, 198, 245, 0.5);
}

input[type="submit"]:active,
input[type="button"]:active,
button:active { transform: translateY(1px); }

input[type="submit"].redSubmit {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    border-color: rgba(255, 255, 255, 0.14);
}
input[type="submit"].redSubmit:hover {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

textarea { resize: vertical; }

/* ---- Tables ---- */
table.res,
table.cpd {
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
}

table.res th,
table.cpd th {
    background: rgba(255, 255, 255, 0.04);
    color: #e6f1ff;
    font-weight: 800;
    padding: 11px 9px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

table.res td,
table.cpd td {
    padding: 10px 9px;
    border-bottom: 1px solid var(--border);
    color: #dde8f6;
}

table.res tr:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
table.res tr:nth-child(even) { background: rgba(255, 255, 255, 0.04); }
table.res tr:hover { background: rgba(71, 198, 245, 0.12); }
table.res th[data-sort] { cursor: pointer; }
table.res th.sorting-asc, table.res th.sorting-desc { background: #e2e8f0; color: #0c1a2a; }

table.cpd th { text-align: left; padding-left: 14px; }
table.cpd td { text-align: center; }
table.cpd td:first-child {
    text-align: left;
    width: 220px;
    padding-left: 14px;
    background: rgba(255, 255, 255, 0.02);
}

/* ---- Alerts ---- */
.info,
.warning,
.error {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    margin-bottom: 12px;
    font-weight: 600;
}
.info { background: #e0f2fe; border-color: #bae6fd; color: #0f172a; }
.warning { background: #fef3c7; border-color: #fde68a; color: #854d0e; }
.error { background: rgba(241, 113, 113, 0.12); border-color: rgba(241, 113, 113, 0.48); color: #ffe8e8; }

/* ---- Sign-in layout ---- */
.signin-page {
    background:
            radial-gradient(circle at 8% 10%, rgba(71, 198, 245, 0.12), transparent 30%),
            radial-gradient(circle at 90% 0%, rgba(37, 102, 146, 0.18), transparent 28%),
            linear-gradient(150deg, #0c1626 0%, #0a1220 60%, #0c1626 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.signin-page .top-banner,
.signin-page .top-menu { display: none; }
.signin-page .main-wrapper { padding: 32px 0 48px; width: 100%; }

.signin-shell {
    width: min(1140px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.signin-hero {
    padding: 36px 34px;
    background: linear-gradient(155deg, rgba(37, 102, 146, 0.95), rgba(21, 84, 119, 0.95));
    color: #ecf5ff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.signin-hero:after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    border-radius: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
}

.hero-text {
    color: #e6f1ff;
    font-size: 15px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    display: grid;
    gap: 10px;
}
.hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9bf0ff;
    box-shadow: 0 0 0 6px rgba(155, 240, 255, 0.18);
}

.signin-card {
    background: linear-gradient(160deg, #0f1f33, #0b1727);
    padding: 30px 28px 28px;
}

.signin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.signin-brand img { height: 48px; }
.signin-brand .eyebrow {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--subtle);
    font-weight: 700;
}
.signin-brand h2 {
    margin: 2px 0 0 0;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.signin-card section span {
    background: linear-gradient(90deg, rgba(71, 198, 245, 0.18), rgba(37, 102, 146, 0.28));
}

.signin-form {
    margin-top: 10px;
    display: grid;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 700;
    color: #cdd8e8;
    letter-spacing: 0.01em;
}

.form-field input {
    width: 100%;
}

.signin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

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

.signin-card .error {
    margin-bottom: 6px;
    border-radius: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 1180px) {
    .container, .content { width: 96%; }
}

@media (max-width: 900px) {
    ul.navigation { overflow-x: auto; }
    .signin-shell { grid-template-columns: 1fr; }
    .signin-hero { min-height: 240px; }
    select,
    input[type="text"],
    input[type="number"],
    input[type="password"],
    textarea { width: 100%; }
}

@media (max-width: 720px) {
    .brand-bar { flex-direction: column; align-items: flex-start; }
    .content { padding: 14px; }
    ul.navigation li ul { position: static; box-shadow: none; margin-top: 6px; }
}
