/* ============================================================
   NovaStudioHub Platform — Main Stylesheet
   Fonts: Space Grotesk (headings/buttons) + Figtree (body)
   Brand: #B7996F gold, #111111 cards, #0C0C0C background
   ============================================================ */

:root {
    --nsh-gold:        #B7996F;
    --nsh-gold-h:      #C9AD85;
    --nsh-bg:          #0C0C0C;
    --nsh-card:        #111111;
    --nsh-surface:     #181818;
    --nsh-input:       #1C1C1C;
    --nsh-text:        #FFFFFF;
    --nsh-text-2:      #A0A0A0;
    --nsh-text-3:      #555555;
    --nsh-border:      #222222;
    --nsh-border-g:    rgba(183,153,111,0.25);
    --nsh-green:       #22C55E;
    --nsh-amber:       #F59E0B;
    --nsh-red:         #EF4444;
    --nsh-radius:      8px;
    --nsh-radius-lg:   12px;
}

/* ── Reset & base ──────────────────────────────────────────── */
.nsh-auth-wrap *,
.nsh-dashboard *,
.nsh-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.nsh-auth-wrap,
.nsh-dashboard,
.nsh-page {
    font-family: 'Figtree', sans-serif;
    color: var(--nsh-text);
    background: var(--nsh-bg);
    min-height: 100vh;
}

/* ── Auth pages (login / register / verify) ────────────────── */
.nsh-auth-wrap {
    display: flex;
    align-items: stretch;
    min-height: 80vh;
}

.nsh-auth-form-panel {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 60px 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nsh-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.nsh-auth-wrap .nsh-auth-logo img,
.nsh-auth-logo img {
    height: 22px !important;
    width: auto !important;
    max-width: 160px !important;
    max-height: 22px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Hide the Technologies LTD sub text on all auth pages */
.nsh-logo-sub {
    display: none !important;
}

.nsh-auth-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--nsh-text);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    text-align: center;
}

.nsh-auth-sub {
    font-size: 14px;
    color: var(--nsh-text-2);
    font-weight: 400;
    margin-bottom: 1.8rem;
    text-align: center;
    line-height: 1.6;
}

/* ── Notices ───────────────────────────────────────────────── */
.nsh-notice {
    padding: 10px 14px;
    border-radius: var(--nsh-radius);
    font-size: 13px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nsh-notice-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #FCA5A5;
}

.nsh-notice-success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: #86EFAC;
}

.nsh-notice-info {
    background: rgba(183,153,111,0.07);
    border: 1px solid rgba(183,153,111,0.2);
    color: var(--nsh-gold);
}

/* ── Google button ─────────────────────────────────────────── */
.nsh-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px;
    background: var(--nsh-surface);
    border: 1px solid var(--nsh-border);
    border-radius: var(--nsh-radius);
    color: var(--nsh-text);
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, background .15s;
    margin-bottom: 1.4rem;
}

.nsh-google-btn:hover {
    border-color: var(--nsh-border-g);
    background: var(--nsh-input);
}

/* ── Divider ───────────────────────────────────────────────── */
.nsh-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.4rem;
    color: var(--nsh-text-3);
    font-size: 11px;
}

.nsh-divider::before,
.nsh-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--nsh-border);
}

/* ── Form fields ───────────────────────────────────────────── */
.nsh-form {
    width: 100%;
}

.nsh-field {
    margin-bottom: 1rem;
}

.nsh-field label {
    display: block;
    font-size: 11px;
    color: var(--nsh-text-2);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.nsh-field input,
.nsh-field select,
.nsh-field textarea {
    width: 100%;
    background: var(--nsh-input);
    border: 1px solid var(--nsh-border);
    border-radius: var(--nsh-radius);
    padding: 11px 14px;
    color: var(--nsh-text);
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}

.nsh-field input:focus,
.nsh-field select:focus,
.nsh-field textarea:focus {
    border-color: var(--nsh-border-g);
}

.nsh-field input::placeholder,
.nsh-field textarea::placeholder {
    color: var(--nsh-text-3);
}

.nsh-field textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.nsh-field select option {
    background: #1C1C1C;
    color: var(--nsh-text);
}

.nsh-field-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Password field ────────────────────────────────────────── */
.nsh-input-pw-wrap {
    position: relative;
}

.nsh-input-pw-wrap input {
    padding-right: 40px;
}

.nsh-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nsh-text-3);
    padding: 0;
    display: flex;
    align-items: center;
}

.nsh-toggle-pw:hover {
    color: var(--nsh-text-2);
}

/* ── Meta row (remember me + forgot) ──────────────────────── */
.nsh-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.nsh-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--nsh-text-2);
    cursor: pointer;
}

.nsh-check input[type="checkbox"] {
    accent-color: var(--nsh-gold);
    width: 12px;
    height: 12px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.nsh-btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--nsh-gold);
    border: none;
    border-radius: var(--nsh-radius);
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background .2s;
    margin-bottom: 1rem;
}

.nsh-btn-primary:hover {
    background: var(--nsh-gold-h);
}

.nsh-btn-primary:disabled {
    background: var(--nsh-surface);
    color: var(--nsh-text-3);
    cursor: not-allowed;
}

.nsh-btn-outline {
    background: transparent;
    border: 1px solid var(--nsh-border);
    color: var(--nsh-text-2);
}

.nsh-btn-outline:hover {
    border-color: var(--nsh-border-g);
    color: var(--nsh-text);
}

/* ── Links ─────────────────────────────────────────────────── */
.nsh-link {
    color: var(--nsh-gold);
    text-decoration: none;
    font-size: 12px;
    transition: color .15s;
}

.nsh-link:hover {
    color: var(--nsh-gold-h);
}

.nsh-foot-link {
    text-align: center;
    font-size: 12px;
    color: var(--nsh-text-3);
}

.nsh-foot-link a {
    color: var(--nsh-gold);
    text-decoration: none;
}

/* ── Terms checkbox ────────────────────────────────────────── */
.nsh-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1.2rem;
    font-size: 12px;
    color: var(--nsh-text-2);
}

.nsh-terms input {
    accent-color: var(--nsh-gold);
    width: 12px;
    height: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.nsh-terms a {
    color: var(--nsh-gold);
    text-decoration: none;
}

/* ── Section labels (freelancer form) ──────────────────────── */
.nsh-section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    color: var(--nsh-text-3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 1.2rem 0 .8rem;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--nsh-border);
}

/* ── OTP verification inputs ───────────────────────────────── */
.nsh-otp-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.nsh-otp-digit {
    width: 52px;
    height: 60px;
    background: var(--nsh-input);
    border: 1.5px solid var(--nsh-border);
    border-radius: 10px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--nsh-text);
    outline: none;
    transition: border-color .2s;
    caret-color: var(--nsh-gold);
}

.nsh-otp-digit:focus {
    border-color: var(--nsh-gold);
    background: rgba(183,153,111,0.05);
}

.nsh-otp-digit.filled {
    border-color: rgba(183,153,111,0.4);
}

.nsh-otp-digit.error {
    border-color: var(--nsh-red);
    animation: nsh-shake .3s ease;
}

.nsh-otp-digit.success {
    border-color: var(--nsh-green);
}

@keyframes nsh-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-4px); }
    75%       { transform: translateX(4px); }
}

/* ── Dashboard sidebar ─────────────────────────────────────── */
.nsh-dashboard {
    display: flex;
    min-height: 100vh;
}

.nsh-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: var(--nsh-card);
    border-right: 1px solid var(--nsh-border);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.nsh-sb-top {
    padding: 1.3rem 1.2rem;
    border-bottom: 1px solid var(--nsh-border);
}

.nsh-sb-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 1.2rem;
}

.nsh-sb-logo img {
    height: 22px;
    object-fit: contain;
}

.nsh-sb-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--nsh-text);
}

.nsh-user-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nsh-user-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--nsh-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.nsh-user-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nsh-user-info strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--nsh-text);
    display: block;
}

.nsh-user-info span {
    font-size: 11px;
    color: var(--nsh-text-3);
}

.nsh-nav-items {
    padding: .8rem 0;
    flex: 1;
}

.nsh-nav-group {
    font-size: 10px;
    color: var(--nsh-text-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 1.2rem 4px;
    font-weight: 500;
}

.nsh-ni {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 1.2rem;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all .15s;
    text-decoration: none;
}

.nsh-ni:hover {
    background: rgba(255,255,255,0.03);
}

.nsh-ni.on {
    background: rgba(183,153,111,0.08);
    border-left-color: var(--nsh-gold);
}

.nsh-ni svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--nsh-text-3);
}

.nsh-ni.on svg {
    color: var(--nsh-gold);
}

.nsh-ni span {
    font-size: 13px;
    color: var(--nsh-text-2);
}

.nsh-ni.on span {
    color: var(--nsh-text);
}

.nsh-nav-badge {
    margin-left: auto;
    background: var(--nsh-gold);
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 7px;
}

.nsh-nav-badge.red {
    background: var(--nsh-red);
    color: #fff;
}

.nsh-sb-foot {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--nsh-border);
}

.nsh-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--nsh-text-3);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Figtree', sans-serif;
    padding: 0;
    transition: color .15s;
}

.nsh-logout-btn:hover {
    color: var(--nsh-text-2);
}

.nsh-logout-btn svg {
    width: 15px;
    height: 15px;
}

/* ── Dashboard main content ────────────────────────────────── */
.nsh-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.nsh-page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--nsh-text);
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}

.nsh-page-sub {
    font-size: 14px;
    color: var(--nsh-text-2);
    margin-bottom: 1.8rem;
    font-weight: 400;
}

/* ── Stat cards ────────────────────────────────────────────── */
.nsh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.8rem;
}

.nsh-stat-card {
    background: var(--nsh-card);
    border: 1px solid var(--nsh-border);
    border-radius: var(--nsh-radius-lg);
    padding: 1rem 1.1rem;
}

.nsh-stat-label {
    font-size: 11px;
    color: var(--nsh-text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.nsh-stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--nsh-text);
    margin-bottom: 2px;
}

.nsh-stat-change {
    font-size: 11px;
    color: var(--nsh-green);
}

.nsh-stat-change.warn {
    color: var(--nsh-amber);
}

/* ── Section head ──────────────────────────────────────────── */
.nsh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
}

.nsh-section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--nsh-text);
}

/* ── Tables ────────────────────────────────────────────────── */
.nsh-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.8rem;
}

.nsh-table th {
    font-size: 11px;
    color: var(--nsh-text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    padding: 8px 12px;
    border-bottom: 1px solid var(--nsh-border);
    text-align: left;
}

.nsh-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--nsh-border);
    font-size: 13px;
    color: var(--nsh-text-2);
    vertical-align: middle;
}

.nsh-table tr:last-child td {
    border-bottom: none;
}

.nsh-table tr:hover td {
    background: rgba(255,255,255,0.015);
}

.nsh-table .title-cell {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--nsh-text);
}

/* ── Status pills ──────────────────────────────────────────── */
.nsh-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.nsh-status.active   { background: rgba(34,197,94,0.1);   color: var(--nsh-green); }
.nsh-status.pending  { background: rgba(245,158,11,0.1);  color: var(--nsh-amber); }
.nsh-status.done     { background: rgba(183,153,111,0.1); color: var(--nsh-gold);  }
.nsh-status.review   { background: rgba(99,102,241,0.1);  color: #818CF8;          }
.nsh-status.rejected { background: rgba(239,68,68,0.1);   color: var(--nsh-red);   }

/* ── Two column layout ─────────────────────────────────────── */
.nsh-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ── Card ──────────────────────────────────────────────────── */
.nsh-card {
    background: var(--nsh-card);
    border: 1px solid var(--nsh-border);
    border-radius: var(--nsh-radius-lg);
    padding: 1.1rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .nsh-sidebar {
        display: none;
    }
    .nsh-stats {
        grid-template-columns: 1fr 1fr;
    }
    .nsh-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nsh-auth-form-panel {
        padding: 2rem 1.2rem;
    }
    .nsh-field-two {
        grid-template-columns: 1fr;
    }
    .nsh-otp-digit {
        width: 44px;
        height: 54px;
        font-size: 20px;
    }
    .nsh-stats {
        grid-template-columns: 1fr;
    }
}