/* ---------------------------------------------------------
   QuickLinkTrack Pro · Dark Theme
   - Deep blue/black background
   - Silver accents, bright text
   - Poppins font
   Works on PHP 7.4–8+ frontends
----------------------------------------------------------*/

/* =========================================================
   QuickLinkTrack Pro — Dark UI (Poppins, Blue-Black, Silver)
   Clean, centered, and consistent across public/member/admin
   ========================================================= */

/* Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Reset */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #e9eefc;
    background:
            radial-gradient(1100px 600px at 10% -10%, rgba(11, 19, 37, 0.25) 0%, rgba(11, 19, 37, 0) 36%),
            radial-gradient(900px 500px at 110% 10%, rgba(27, 39, 69, 0.18) 0%, rgba(27, 39, 69, 0) 55%),
            linear-gradient(180deg, #0b142b 0%, #0e1a33 60%, #081225 100%);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    color: #8fd3ff;
    text-decoration: none;
}

a:hover {
    color: #bfe8ff;
    text-decoration: underline;
}

/* Layout */
.page-wrap {
    max-width: 1250px;
    margin: 24px auto;
    padding: 0 16px 56px;
}

/* Header (centered) */
:root {
    --header-h: 200px;
}

.site-header {
    position: relative;
    min-height: var(--header-h);
}

.site-header .header-bg {
    position: absolute;
    inset: 0;
    background: transparent;
}

.site-header .header-inner {
    position: relative;
    z-index: 1;
    max-width: 1250px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.site-header .brand img {
    display: block;
    height: calc(var(--header-h) - 60px);
    /* room for nav */
    max-width: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 6px 20px rgba(255, 255, 255, 0.09));
}

/* Member top nav (35px gap below logo) */
.member-topnav {
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Buttons */
.btn {
    --b1: #0f2342;
    --b2: #0a1a33;
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--b1), var(--b2));
    color: #eaf3ff;
    border: 1px solid rgba(173, 195, 255, 0.22);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
    font-weight: 600;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
    min-width: 112px;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn.success {
    --b1: #1d6a3a;
    --b2: #0f4d27;
}

.btn.warning {
    --b1: #936b16;
    --b2: #6b4d0f;
}

.btn.danger {
    --b1: #c23a3a;
    --b2: #7a1b1b;
}

/* Cards */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(173, 195, 255, 0.18);
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin-bottom: 16px;
}

.card h1,
.card h2,
.card h3 {
    margin: 0 0 10px;
    color: #fff;
}

/* Alerts */
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 10px 0 14px;
    border: 1px solid rgba(173, 195, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.alert-success {
    background: linear-gradient(180deg, rgba(34, 120, 70, 0.22), rgba(22, 77, 45, 0.18));
    border-color: rgba(110, 220, 160, 0.35);
}

.alert-error {
    background: linear-gradient(180deg, rgba(160, 34, 34, 0.22), rgba(110, 20, 20, 0.18));
    border-color: rgba(255, 140, 140, 0.35);
}

/* Forms */
label {
    display: block;
    font-size: 0.95rem;
    color: #cfe3ff;
    margin: 8px 0 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    color: #eaf2ff;
    background: #0b1530;
    border: 1px solid rgba(173, 195, 255, 0.22);
    border-radius: 10px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input::placeholder,
textarea::placeholder {
    color: #9db3d4;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #7fbaff;
    box-shadow: 0 0 0 3px rgba(127, 186, 255, 0.15);
}

small.help {
    display: block;
    margin-top: 6px;
    color: #a9c2e8;
}

.card form {
    margin-top: 6px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.two-col .field {
    min-width: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    font-weight: 600;
    color: #d6e6ff;
    background: #0c1a35;
    border-bottom: 1px solid rgba(173, 195, 255, 0.25);
    padding: 10px;
}

tbody td {
    padding: 10px;
    border-bottom: 1px solid rgba(173, 195, 255, 0.12);
    word-break: break-word;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Footer (centered) */
footer,
.footer {
    text-align: center;
    border-top: 1px solid rgba(173, 195, 255, 0.18);
    padding: 16px 0;
    color: #b8c9e6;
    font-size: 0.92rem;
    opacity: .95;
}

/* Utilities */
.small {
    font-size: 0.92rem;
    opacity: .95;
}

.center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 960px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .page-wrap {
        padding: 0 12px 48px;
    }

    .site-header .brand img {
        height: 120px;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: dark;
    }

    /* keep our dark style */
}
/* Admin form helpers */
.checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 10px;
}

.checkline input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #2ae527;
}

/* Style radio buttons in admin forms like checkboxes */
.checkline input[type="radio"] {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #2ae527;
}

.mt-16 {
    margin-top: 16px;
}