@font-face {
    font-family: 'Inter Tight';
    src: url('/assets/fonts/InterTight-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
}

:root {

    --bg: #f3f5f8;

    --card: #ffffff;

    --text: #111827;
    --muted: #6b7280;

    --border: #e5e7eb;

    --blue: #2563eb;
    --blue-hover: #1d4ed8;

    --yellow: #f5b301;

    --success: #22c55e;
    --danger: #ef4444;

    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {

    margin: 0;
    padding: 0;

    background: var(--bg);

    font-family: 'Inter Tight', sans-serif;
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.admin-sidebar {

    width: 260px;

    background: #fff;

    border-right: 1px solid var(--border);

    padding: 26px 18px;

    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    overflow-y: auto;
}

.admin-logo {

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 8px 10px;

    margin-bottom: 34px;
}

.admin-logo img {

    width: 52px;
    height: 52px;

    object-fit: contain;
}

.admin-logo-text h1 {

    margin: 0;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.1;
}

.admin-logo-text p {

    margin: 3px 0 0;

    font-size: 13px;

    color: var(--muted);
}

.admin-nav {

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.admin-nav a {

    display: flex;
    align-items: center;

    padding: 14px 16px;

    border-radius: 14px;

    color: #374151;

    font-weight: 600;

    transition: 0.18s ease;
}

.admin-nav a:hover {

    background: #eef4ff;

    color: var(--blue);
}

/* MAIN */

.admin-main {

    flex: 1;

    margin-left: 260px;

    padding: 32px;
}

/* PAGE HEADER */

.page-header {

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

    margin-bottom: 26px;
}

.page-title {

    margin: 0;

    font-size: 34px;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.page-subtitle {

    margin-top: 6px;

    color: var(--muted);

    font-size: 15px;
}

/* CARDS */

.card {

    background: var(--card);

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

    border-radius: var(--radius);

    padding: 24px;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.02),
        0 6px 24px rgba(0,0,0,0.03);
}

.card-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 20px;
}

/* STATS */

.stat-number {

    font-size: 38px;

    font-weight: 800;

    margin-bottom: 8px;
}

.stat-label {

    color: var(--muted);

    font-size: 14px;
}

/* BUTTONS */

.button {

    display: inline-flex;

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

    padding: 13px 18px;

    border-radius: 14px;

    background: var(--blue);

    color: #fff;

    border: none;

    cursor: pointer;

    font-weight: 700;

    transition: 0.18s ease;
}

.button:hover {
    background: var(--blue-hover);
}

/* INPUTS */

input[type="text"],
input[type="file"],
input[type="password"],
select,
textarea {

    width: 100%;

    padding: 14px 16px;

    border-radius: 14px;

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

    background: #fff;

    font-family: inherit;
    font-size: 15px;

    transition: 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: #bcd1ff;

    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

label {

    display: inline-block;

    margin-top: 8px;
	
	margin-bottom: 8px;

    font-weight: 600;
}

/* TABLE STYLE */

.simple-table {

    width: 100%;

    border-collapse: collapse;
}

.simple-table th,
.simple-table td {

    padding: 16px 14px;

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

    text-align: left;
}

.simple-table th {

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 0.04em;

    color: var(--muted);
}

/* STATUS */

.status {

    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.status-success {

    background: #dcfce7;
    color: #166534;
}

.status-pending {

    background: #fef3c7;
    color: #92400e;
}
/* =========================================
MEDIA LOGIN SYSTEM
========================================= */

.explorer-body {
    min-height: 100vh;
    background: #f3f5f8;
}

.login-screen {
    min-height: 100vh;

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

    padding: 24px;

    box-sizing: border-box;
}

.login-shell {
    width: 100%;
    max-width: 520px;
}

.login-card {
    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 20px;

    padding: 28px;

    box-shadow: 0 10px 30px rgba(17,24,39,0.06);
}

.login-brand {
    display: flex;

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

    gap: 18px;

    margin-bottom: 18px;

    text-align: left;
}

.login-logo {
    width: 60px;
    height: 60px;

    flex: 0 0 60px;

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

.login-logo img,
img.login-logo {

    width: 60px;
    height: 60px;

    object-fit: contain;

    display: block;
}

.login-brand-text {
    display: flex;

    flex-direction: column;

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

    min-width: 0;
}

.explorer-brand-title {

    font-size: 15px;

    color: #6b7280;

    line-height: 1.1;

    margin: 0;
}

.login-title {

    font-size: 34px;

    font-weight: 700;

    line-height: 1;

    margin: 0;

    white-space: nowrap;
}

.login-subtitle {

    color: #6b7280;

    text-align: center;

    margin: 0 0 20px;
}

.login-form {

    display: grid;

    gap: 16px;
}

.login-field {

    display: grid;

    gap: 8px;
}

.login-field label {

    font-size: 14px;

    color: #374151;

    font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"] {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    font-size: 15px;

    background: #fff;

    box-sizing: border-box;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {

    outline: none;

    border-color: #93c5fd;

    box-shadow: 0 0 0 4px rgba(147,197,253,0.25);
}

.explorer-btn {

    padding: 12px 18px;

    border-radius: 10px;

    border: 1px solid #c7d2fe;

    cursor: pointer;

    font-size: 16px;

    text-decoration: none;

    display: inline-flex;

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

    transition: 0.15s ease;

    font-family: inherit;
}

.explorer-btn:hover {
    text-decoration: none;
}

.explorer-btn-primary {

    background: #1677ff;

    color: #fff;

    border-color: #1677ff;
}

.explorer-btn-primary:hover {

    background: #0f6ae8;

    border-color: #0f6ae8;
}

.login-button {

    width: 100%;

    justify-content: center;
}

@media (max-width: 720px) {

    .login-card {
        padding: 22px;
    }

    .login-title {
        font-size: 28px;
    }
}
/* MOBILE */

@media (max-width: 900px) {

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {

        position: relative;

        width: 100%;
        height: auto;

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

    .admin-main {

        margin-left: 0;

        padding: 20px;
    }

    .page-header {

        flex-direction: column;
        align-items: flex-start;

        gap: 14px;
    }
}
/* =========================================
ADMIN UNIFORM COMPONENT FIX
========================================= */

.admin-main {
    padding: 32px;
}

.page-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    margin-bottom: 36px;
}

.page-title {

    margin: 0 0 10px;

    font-size: 42px;

    line-height: 1;

    letter-spacing: -0.03em;
}

.page-subtitle {

    margin: 0;

    color: #6b7280;

    font-size: 16px;

    line-height: 1.5;
}

.card {
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.button,
.explorer-btn {
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    gap: 6px;
}

.button {
    background: #1677ff;
    border: 1px solid #1677ff;
    color: #fff;
}

.button:hover {
    background: #0f6ae8;
    border-color: #0f6ae8;
    text-decoration: none;
}

.secondary-button,
.button.secondary-button {
    background: #f8fbff;
    color: #1677ff;
    border: 1px solid #c7d2fe;
}

.secondary-button:hover,
.button.secondary-button:hover {
    background: #eef6ff;
    color: #0f5fd4;
    border-color: #a9c4ff;
}

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

.simple-table th {
    padding: 14px 14px;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #e5e7eb;
}

.simple-table td {
    padding: 18px 14px;
    border-top: 0;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

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

.simple-table td form {
    margin: 0;
}

.simple-table td:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.status {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    margin-top: 12px;
    color: #6b7280;
    font-size: 14px;
}
/* =========================================
NEWSLETTER MANAGE PAGE
========================================= */

.manage-grid {

    display: grid;

    grid-template-columns: 1fr 420px;

    gap: 20px;

    margin-bottom: 20px;
}

.info-card h2,
.add-crew-card h2,
.assigned-card h2 {

    margin-top: 0;
}

.newsletter-meta {

    display: grid;

    gap: 14px;

    margin-top: 18px;
}

.meta-row {

    display: flex;

    gap: 10px;

    align-items: center;
}

.meta-label {

    font-size: 14px;

    color: #6b7280;

    min-width: 70px;
}

.meta-value {

    font-weight: 700;
}

.assigned-table {

    width: 100%;

    border-collapse: collapse;
}

.assigned-table th {

    text-align: left;

    padding: 14px;

    font-size: 13px;

    text-transform: uppercase;

    color: #6b7280;

    border-bottom: 1px solid #e5e7eb;
}

.assigned-table td {

    padding: 16px 14px;

    border-bottom: 1px solid #f1f5f9;

    vertical-align: middle;
}

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

.status-pill {

    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 700;
}

.status-pill.pending {

    background: #fef3c7;

    color: #92400e;
}

.status-pill.signed {

    background: #dcfce7;

    color: #166534;
}

.inline-form {
    margin: 0;
}

@media (max-width: 1000px) {

    .manage-grid {
        grid-template-columns: 1fr;
    }
}
.crew-table {
    width: 100%;
    border-collapse: collapse;
}

.crew-table th {
    text-align: left;
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.crew-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

.crew-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crew-edit-form {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 160px auto;
    gap: 10px;
    align-items: center;
}
.crew-add-action {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .crew-table,
    .crew-table thead,
    .crew-table tbody,
    .crew-table tr,
    .crew-table th,
    .crew-table td {
        display: block;
        width: 100%;
    }

    .crew-table thead {
        display: none;
    }

    .crew-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 12px;
    }

    .crew-table td {
        border-bottom: 0;
        padding: 8px 0;
    }

    .crew-edit-form {
        grid-template-columns: 1fr;
    }
}
/* =========================================
CREW PAGE TOP GRID
========================================= */

.crew-top-grid {

    display: grid !important;

    grid-template-columns: 340px 1fr !important;

    gap: 20px;

    align-items: start;

    margin-bottom: 24px;
}

.crew-summary-card {
    height: 100%;
}

.crew-summary-grid {

    display: grid;

    gap: 14px;

    margin-top: 16px;
}

.summary-stat {

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 16px;

    background: #f8fafc;
}

.summary-stat span {

    display: block;

    color: #6b7280;

    font-size: 14px;

    margin-bottom: 8px;
}

.summary-stat strong {

    display: block;

    font-size: 15px;

    line-height: 1;
}

.crew-add-form {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.crew-add-form .crew-add-action {

    grid-column: 1 / -1;
}

@media (max-width: 1000px) {

    .crew-top-grid {
        grid-template-columns: 1fr !important;
    }

    .crew-add-form {
        grid-template-columns: 1fr;
    }
}
.danger-button {
    background: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.danger-button:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}
/* =========================================
MOBILE FIXES - ADMIN
========================================= */

@media (max-width: 900px) {

    body {
        overflow-x: hidden;
    }

    .admin-sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 18px;
    }

    .admin-logo {
        margin-bottom: 18px;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-nav a {
        padding: 12px;
        font-size: 14px;
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 16px !important;
    }

    .page-header {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 22px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .card {
        padding: 16px;
        border-radius: 14px;
    }

    .card-grid {
        grid-template-columns: 1fr !important;
    }

    .manage-grid,
    .crew-top-grid {
        grid-template-columns: 1fr !important;
    }

    .crew-add-form {
        grid-template-columns: 1fr !important;
    }

    .simple-table,
    .assigned-table,
    .crew-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .button,
    .explorer-btn {
        min-height: 42px;
        padding: 11px 14px;
    }
}

@media (max-width: 520px) {

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }

    .crew-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .crew-actions .button,
    .crew-actions form,
    .crew-actions button {
        width: 100%;
    }
}
/* =========================================
ADMIN USERS TABLE
========================================= */

.admin-users-table td {
    vertical-align: middle;
}

.admin-users-table .user-meta {
    white-space: nowrap;
}

.admin-users-table .reset-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.admin-users-table .reset-form input {
    min-width: 220px;
}

.admin-users-table .actions-cell {
    white-space: nowrap;
}

.admin-users-table .status-text {
    white-space: nowrap;
}
/* =========================================
MOBILE SIDEBAR MENU
========================================= */

.mobile-menu-toggle {

    display: none;

    position: fixed;

    top: 16px;

    right: 16px;

    z-index: 2000;

    width: 48px;

    height: 48px;

    border: none;

    border-radius: 12px;

    background: #2563eb;

    color: #fff;

    font-size: 24px;

    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-sidebar {

        position: fixed !important;

        top: 0;

        left: -320px;

        width: 280px !important;

        height: 100vh !important;

        z-index: 1500;

        transition: left 0.25s ease;

        overflow-y: auto;

        box-shadow: 0 0 30px rgba(0,0,0,0.15);
    }

    .admin-sidebar.mobile-open {
        left: 0;
    }

    .admin-main {

        margin-left: 0 !important;

        width: 100%;

        padding-top: 80px !important;
    }

    .admin-nav {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }
}