/* ============================================================================
   Woden Electrical Services Ltd. Client Portal Styles
   File: /public_html/portal/assets/portal.css
   ============================================================================ */

:root {
    --main-blue: #00a3e0;
    --main-blue-dark: #0078a8;
    --industrial-dark: #121417;
    --panel-grey: #1e2126;
    --panel-soft: #181b20;
    --panel-deep: #0b0d0f;
    --text-white: #f5f7fa;
    --text-muted: #a8b3c1;
    --line-dark: #2d333b;
    --white: #ffffff;
    --green: #34d399;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue-soft: rgba(0, 163, 224, 0.14);
    --green-soft: rgba(52, 211, 153, 0.12);
    --amber-soft: rgba(245, 158, 11, 0.12);
    --red-soft: rgba(239, 68, 68, 0.12);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

    --content-max: 1320px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================================
   RESET / BASE
   ============================================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background: var(--industrial-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
label,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-appearance: none;
    appearance: none;
}

input,
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 163, 224, 0.35);
    outline-offset: 3px;
}

.hidden {
    display: none !important;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--main-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    flex: 0 0 auto;
}

/* ============================================================================
   LOGIN PAGE
   ============================================================================ */

.portal-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 163, 224, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(0, 120, 168, 0.18), transparent 38%),
        var(--industrial-dark);
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-shell {
    width: min(1120px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    border: 1px solid rgba(0, 163, 224, 0.24);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--panel-grey);
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    padding: 42px;
    background:
        radial-gradient(circle at top right, rgba(0, 163, 224, 0.28), transparent 35%),
        linear-gradient(135deg, #0d1b2a, #111827);
    overflow: hidden;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -110px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(0, 163, 224, 0.08);
    pointer-events: none;
}

.login-brand-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--text-white);
}

.login-logo {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 4px;
    flex: 0 0 auto;
}

.login-brand-link span {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.login-brand-link strong {
    color: var(--main-blue);
    font-weight: 900;
}

.login-brand-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.login-brand-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.login-brand-copy p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
    max-width: 540px;
}

.login-status-card {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: var(--radius-md);
    background: rgba(52, 211, 153, 0.08);
}

.login-status-card strong,
.login-status-card small {
    display: block;
}

.login-status-card strong {
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-status-card small {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    background: var(--panel-grey);
}

.login-card-header {
    margin-bottom: 24px;
}

.login-card-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.login-card-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 800;
}

.alert-info {
    background: var(--blue-soft);
    border: 1px solid rgba(0, 163, 224, 0.28);
    color: #7dd3fc;
}

.alert-error {
    background: var(--red-soft);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #fca5a5;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label {
    margin-top: 8px;
    color: #dbe3ee;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.login-form input,
.portal-form input,
.portal-form select,
.portal-form textarea {
    width: 100%;
    border: 1px solid #444;
    background: #2b2e33;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
    color: var(--white);
}

.login-form input::placeholder,
.portal-form input::placeholder,
.portal-form textarea::placeholder {
    color: #7d8997;
}

.login-form input:focus,
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
    border-color: var(--main-blue);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.18);
}

.login-button,
.portal-nav-button,
.small-action-button,
.primary-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: var(--main-blue);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 900;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.login-button {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    padding: 13px 18px;
    font-size: 14px;
}

.login-button:hover,
.portal-nav-button:hover,
.small-action-button:hover,
.primary-action-button:hover {
    background: var(--main-blue-dark);
    transform: translateY(-1px);
}

.login-help {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line-dark);
}

.login-help p {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.login-help a {
    color: var(--main-blue);
    font-size: 13px;
    font-weight: 900;
}

.login-help a:hover {
    color: #7dd3fc;
}

/* ============================================================================
   PORTAL APP HEADER
   ============================================================================ */

.portal-app-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(0, 163, 224, 0.12), transparent 32%),
        var(--industrial-dark);
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid rgba(0, 163, 224, 0.65);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.portal-nav {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.portal-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 4px;
    flex: 0 0 auto;
}

.portal-brand span {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.portal-brand strong {
    color: var(--main-blue);
}

.portal-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.portal-nav-link {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.portal-nav-link:hover {
    color: var(--main-blue);
}

.portal-nav-button {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================================
   DASHBOARD LAYOUT
   ============================================================================ */

.portal-page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 48px 24px 40px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 38px;
    border: 1px solid rgba(0, 163, 224, 0.28);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(0, 163, 224, 0.22), transparent 34%),
        linear-gradient(135deg, #0d1b2a, #111827);
    box-shadow: var(--shadow);
}

.dashboard-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.dashboard-hero p {
    margin: 0;
    color: #cbd5e1;
    font-weight: 700;
}

.dashboard-session-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 14px 16px;
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: var(--radius-md);
    background: rgba(52, 211, 153, 0.08);
}

.dashboard-session-card strong,
.dashboard-session-card small {
    display: block;
}

.dashboard-session-card strong {
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-session-card small {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.dashboard-stat-card,
.portal-panel {
    background: var(--panel-grey);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.dashboard-stat-card {
    padding: 22px;
    min-width: 0;
}

.stat-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.dashboard-stat-card strong {
    display: block;
    color: var(--text-white);
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
    gap: 24px;
}

.dashboard-main,
.dashboard-side {
    min-width: 0;
}

.dashboard-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.portal-panel {
    padding: 24px;
    min-width: 0;
}

.portal-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.portal-panel h2,
.portal-panel-header h2 {
    margin: 0 0 6px;
    color: var(--text-white);
    font-size: 22px;
    line-height: 1.14;
    letter-spacing: -0.02em;
    font-weight: 900;
}

.portal-panel p,
.portal-panel-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.small-action-button {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============================================================================
   TABLES
   ============================================================================ */

.portal-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
}

.portal-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 13px;
}

.portal-table th {
    background: #050607;
    color: var(--text-white);
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 900;
    border-bottom: 1px solid rgba(0, 163, 224, 0.25);
}

.portal-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line-dark);
    color: #dbe3ee;
    vertical-align: middle;
}

.portal-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.portal-table tbody tr:hover {
    background: rgba(0, 163, 224, 0.06);
}

.portal-table .right {
    text-align: right;
    font-weight: 900;
}

.portal-table td strong {
    color: var(--text-white);
    font-weight: 900;
}

.empty-row {
    text-align: center;
    color: var(--text-muted) !important;
    font-weight: 700;
    padding: 28px !important;
}

.table-link {
    color: var(--main-blue);
    font-weight: 900;
}

.table-link:hover {
    color: #7dd3fc;
}

.project-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-draft {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.status-review {
    color: #7dd3fc;
    background: rgba(0, 163, 224, 0.12);
    border: 1px solid rgba(0, 163, 224, 0.26);
}

.status-approved {
    color: #a7f3d0;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.26);
}

.status-closed {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.26);
}

/* ============================================================================
   ACCOUNT / TOOL LISTS
   ============================================================================ */

.account-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.account-list div {
    padding: 13px 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    background: var(--panel-soft);
}

.account-list span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.account-list strong {
    display: block;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.tool-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.tool-list a,
.tool-list span {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 11px 13px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    background: var(--panel-soft);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 900;
}

.tool-list a:hover {
    border-color: rgba(0, 163, 224, 0.45);
    background: rgba(0, 163, 224, 0.08);
    color: var(--main-blue);
}

.tool-list span {
    color: var(--text-muted);
}

/* ============================================================================
   GENERAL FORMS / FUTURE PORTAL PAGES
   ============================================================================ */

.portal-form {
    display: grid;
    gap: 12px;
}

.portal-form label {
    color: #dbe3ee;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.portal-form textarea {
    min-height: 140px;
    resize: vertical;
}

.primary-action-button {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 420px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .portal-login-body {
        padding: 16px;
        align-items: start;
    }

    .login-shell {
        min-height: auto;
        border-radius: var(--radius-lg);
    }

    .login-brand-panel,
    .login-card {
        padding: 28px 24px;
    }

    .login-brand-panel {
        min-height: 360px;
    }

    .login-brand-copy h1 {
        font-size: 32px;
    }

    .portal-nav {
        padding: 12px 16px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .portal-nav-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .portal-nav-link {
        font-size: 12px;
    }

    .portal-page {
        padding: 24px 16px 32px;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 24px;
        border-radius: var(--radius-lg);
    }

    .dashboard-session-card {
        width: 100%;
    }

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

    .portal-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .small-action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-brand-panel,
    .login-card {
        padding: 24px 18px;
    }

    .login-logo,
    .portal-logo {
        width: 34px;
        height: 34px;
        max-width: 34px;
        max-height: 34px;
    }

    .login-brand-link span,
    .portal-brand span {
        font-size: 15px;
    }

    .login-card-header h2 {
        font-size: 28px;
    }

    .dashboard-hero h1 {
        font-size: 28px;
    }

    .portal-nav-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .portal-nav-button,
    .portal-nav-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ============================================================================
   PRINT
   ============================================================================ */

@media print {
    body {
        background: white;
        color: #111827;
    }

    .portal-header,
    .login-brand-panel,
    .login-help,
    .dashboard-session-card,
    .portal-nav-actions {
        display: none !important;
    }

    .portal-page,
    .login-shell {
        max-width: none;
        padding: 0;
        box-shadow: none;
        border: 0;
    }

    .portal-panel,
    .dashboard-stat-card {
        background: white;
        color: #111827;
        box-shadow: none;
        border: 1px solid #dbe2ea;
    }

    .portal-table th {
        background: #111827 !important;
        color: white !important;
    }

    .portal-table td,
    .portal-panel p,
    .account-list strong {
        color: #111827 !important;
    }
}

/* ============================================================================
   TENDER / ADMIN FILE UPDATE ADDITIONS
   ============================================================================ */

.inline-response-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.inline-response-form input[type="text"] {
    min-height: 34px;
    border: 1px solid #444;
    background: #2b2e33;
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}

.mini-action {
    border: 0;
    border-radius: var(--radius-sm);
    min-height: 34px;
    padding: 8px 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.mini-action.approve { background: var(--green); }
.mini-action.decline { background: var(--red); }

.portal-form input[type="checkbox"],
.portal-form input[type="radio"],
.upload-drop input[type="checkbox"],
.upload-drop input[type="radio"] {
    appearance: auto;
    -webkit-appearance: auto;
    width: auto;
    margin-right: 8px;
}

.portal-form select[multiple] {
    min-height: 180px;
}

.danger-link:hover {
    color: #fecaca;
}

@media (max-width: 760px) {
    .inline-response-form {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   TENDER REVIEW FILES / ACCEPTED CLIENT LISTS
   ============================================================================ */

.file-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.file-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 260px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid rgba(0, 163, 224, 0.3);
    border-radius: 999px;
    background: rgba(0, 163, 224, 0.08);
    color: #bae6fd;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.file-pill:hover {
    border-color: rgba(0, 163, 224, 0.65);
    background: rgba(0, 163, 224, 0.16);
    color: var(--white);
}

.file-pill small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
}

.accepted-client-list {
    margin: 0;
    white-space: pre-wrap;
    color: #dbe3ee;
    font-family: var(--body-font);
    font-size: 12px;
    line-height: 1.45;
}

.field-note {
    display: block;
    margin-top: -6px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* ============================================================================
   TENDER TO PROJECT / ADMIN PROJECT EDIT ADDITIONS
   ============================================================================ */

.accepted-response-stack {
    display: grid;
    gap: 12px;
    min-width: 320px;
}

.accepted-response-card {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.accepted-response-card strong {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 900;
}

.accepted-response-card small,
.muted-small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.compact-project-create {
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-project-create label {
    font-size: 11px;
}

.compact-project-create input,
.compact-project-create select {
    margin-top: 4px;
    padding: 8px 10px;
    font-size: 12px;
}

.inline-check,
.admin-check-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #dbe3ee;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.inline-check input[type="checkbox"],
.admin-check-row input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    width: auto;
    margin: 0;
}

.admin-check-row {
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    background: var(--panel-soft);
}

/* ============================================================================
   ORGANIZER DASHBOARD + NOTIFICATION BELL
   ============================================================================ */
.notification-bell-wrap { position: relative; display: inline-flex; align-items: center; }
.notification-bell-wrap summary { list-style: none; }
.notification-bell-wrap summary::-webkit-details-marker { display: none; }
.notification-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.04); cursor: pointer; }
.notification-bell:hover { border-color: rgba(0,163,224,.45); background: rgba(0,163,224,.08); }
.bell-icon { font-size: 17px; line-height: 1; }
.notification-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; }
.notification-dropdown { position: absolute; right: 0; top: calc(100% + 12px); width: min(380px, calc(100vw - 32px)); max-height: 460px; overflow-y: auto; z-index: 3000; border: 1px solid rgba(0,163,224,.28); border-radius: var(--radius-md); background: #0b0d0f; box-shadow: var(--shadow); padding: 12px; }
.notification-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 10px; border-bottom: 1px solid var(--line-dark); }
.notification-head strong { color: var(--text-white); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.notification-head button { border: 0; background: transparent; color: var(--main-blue); font-size: 11px; font-weight: 900; cursor: pointer; }
.notification-list { display: grid; gap: 8px; padding-top: 10px; }
.notification-item { display: grid; gap: 4px; padding: 11px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: var(--panel-soft); }
.notification-item.unread { border-color: rgba(0,163,224,.5); background: rgba(0,163,224,.08); }
.notification-item:hover { border-color: rgba(0,163,224,.58); }
.notice-title { color: var(--text-white); font-size: 13px; font-weight: 900; }
.notice-body { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.notice-date { color: #7d8997; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.notification-empty { margin: 14px 6px 6px; color: var(--text-muted); font-size: 13px; }
.organizer-toolbar { margin: 24px 0; display: grid; gap: 16px; }
.organizer-filter-row, .organizer-folder-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .35fr); gap: 12px; }
.organizer-folder-form { grid-template-columns: minmax(220px, 1fr) auto; }
.organizer-filter-row input, .organizer-filter-row select, .organizer-folder-form input { width: 100%; border: 1px solid #444; background: #2b2e33; color: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; }
.organizer-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; }
.organizer-folder-column { min-width: 0; display: grid; gap: 18px; }
.organizer-folder, .organizer-custom-folder, .client-folder { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--panel-grey); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.organizer-folder { padding: 18px; }
.organizer-folder-head, .custom-folder-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.organizer-folder-head h2 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.organizer-folder-head span { color: var(--text-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.client-folder { margin-bottom: 12px; overflow: hidden; }
.client-folder summary { cursor: pointer; padding: 14px 16px; background: #050607; color: var(--text-white); font-weight: 900; display: flex; justify-content: space-between; }
.client-folder summary span { color: var(--main-blue); }
.organizer-project-list { display: grid; gap: 10px; padding: 12px; }
.organizer-project-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: var(--panel-soft); cursor: grab; }
.organizer-project-card.dragging { opacity: .55; }
.drag-handle { color: var(--main-blue); font-weight: 900; cursor: grab; }
.organizer-card-body { display: grid; gap: 3px; min-width: 0; }
.organizer-card-body strong { color: var(--text-white); overflow-wrap: anywhere; }
.organizer-card-body span, .organizer-card-body small { color: var(--text-muted); font-size: 12px; }
.organizer-meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.organizer-meta-row span { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: rgba(0,163,224,.1); color: #bae6fd; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .035em; }
.organizer-card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.organizer-card-actions a { color: var(--main-blue); font-size: 12px; font-weight: 900; }
.organizer-custom-folder { padding: 14px; margin-bottom: 14px; }
.custom-folder-title strong { color: var(--text-white); font-size: 15px; }
.custom-folder-title button { border: 0; background: transparent; color: var(--red); font-size: 11px; font-weight: 900; cursor: pointer; }
.folder-drop-list { min-height: 82px; border: 1px dashed rgba(0,163,224,.22); border-radius: var(--radius-md); background: rgba(0,0,0,.14); }
.organizer-custom-folder.drop-ready { border-color: rgba(52,211,153,.65); box-shadow: 0 0 0 3px rgba(52,211,153,.12); }
.organizer-empty { color: var(--text-muted); font-size: 13px; padding: 12px; margin: 0; }
@media (max-width: 900px) { .organizer-grid, .organizer-filter-row, .organizer-folder-form { grid-template-columns: 1fr; } .organizer-project-card { grid-template-columns: 24px minmax(0,1fr); } .organizer-card-actions { grid-column: 2; justify-content: flex-start; } }
@media (max-width: 760px) { .notification-dropdown { left: 0; right: auto; width: calc(100vw - 32px); } }

/* ============================================================================
   TRUE DESKTOP / FILE-FOLDER ORGANIZER DASHBOARD
   ============================================================================ */
.desktop-dashboard-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(0, 163, 224, 0.18), transparent 34%),
        linear-gradient(135deg, #0b0d0f 0%, #121826 52%, #0b0d0f 100%);
}

.desktop-dashboard {
    max-width: none;
    min-height: calc(100vh - 72px);
    padding: 26px;
}

.desktop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 24px;
    border: 1px solid rgba(0, 163, 224, 0.22);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.desktop-topbar h1 {
    margin: 0 0 5px;
    color: var(--text-white);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.desktop-topbar p:not(.eyebrow) {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.desktop-status-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.08);
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.desktop-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(170px, 240px) minmax(280px, auto);
    gap: 12px;
    align-items: center;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(0,0,0,.34);
}

.desktop-toolbar input,
.desktop-toolbar select,
.desktop-new-folder-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #11151b;
    color: var(--white);
    padding: 10px 12px;
}

.desktop-new-folder-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 8px;
}

.desktop-new-folder-form button,
.desktop-danger-button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--main-blue);
    color: var(--white);
    padding: 10px 13px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}

.desktop-danger-button { background: var(--red); }

.desktop-surface {
    position: relative;
    min-height: calc(100vh - 280px);
    border: 1px solid rgba(0, 163, 224, 0.2);
    border-radius: 22px;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        rgba(7, 10, 14, 0.72);
    background-size: 32px 32px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 24px 60px rgba(0,0,0,.34);
    padding: 24px;
    overflow: hidden;
}

.desktop-surface.drop-ready {
    outline: 3px solid rgba(52, 211, 153, .32);
    outline-offset: -8px;
}

.desktop-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    align-items: start;
    gap: 18px;
}

.desktop-icon {
    width: 100%;
    min-height: 154px;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    align-items: start;
    justify-items: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--text-white);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
    border-color: rgba(0, 163, 224, .34);
    background: rgba(0, 163, 224, .08);
}

.desktop-icon.drop-ready {
    border-color: rgba(52, 211, 153, .7);
    background: rgba(52, 211, 153, .12);
}

.desktop-icon.dragging {
    opacity: .48;
    transform: scale(.96);
}

.desktop-icon-art {
    width: 74px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 42px;
    filter: drop-shadow(0 12px 16px rgba(0,0,0,.38));
}

.folder-art { background: linear-gradient(145deg, rgba(245,158,11,.26), rgba(245,158,11,.08)); }
.client-art { background: linear-gradient(145deg, rgba(0,163,224,.25), rgba(0,163,224,.07)); }
.project-art { background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); }

.desktop-icon strong {
    display: block;
    max-width: 120px;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.desktop-icon em,
.desktop-icon small {
    display: block;
    max-width: 130px;
    color: var(--text-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.desktop-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 2px;
}

.desktop-quick-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(0,163,224,.35);
    color: #bae6fd;
    background: rgba(0,163,224,.08);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.desktop-folder-window {
    position: absolute;
    left: 4%;
    top: 72px;
    width: min(860px, 92%);
    max-height: min(680px, calc(100% - 110px));
    display: grid;
    grid-template-rows: auto minmax(240px, 1fr) auto;
    border: 1px solid rgba(0,163,224,.32);
    border-radius: 18px;
    background: rgba(14, 18, 24, .98);
    box-shadow: 0 28px 80px rgba(0,0,0,.62);
    overflow: hidden;
    z-index: 20;
}

.desktop-folder-window[hidden] {
    display: none !important;
}

.folder-window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 12px 16px;
    background: #050607;
    border-bottom: 1px solid rgba(0,163,224,.22);
}

.folder-window-titlebar div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.folder-window-titlebar strong {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.folder-window-icon {
    font-size: 22px;
}

.folder-window-titlebar button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: var(--text-white);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.folder-window-titlebar button:hover {
    background: rgba(239,68,68,.16);
    border-color: rgba(239,68,68,.4);
}

.folder-window-body {
    overflow: auto;
    padding: 20px;
    background:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
        rgba(11, 13, 15, .92);
    background-size: 28px 28px;
}

.folder-window-body.drop-ready {
    outline: 3px solid rgba(52, 211, 153, .32);
    outline-offset: -10px;
}

.folder-icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.folder-window-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--line-dark);
    background: #0b0d0f;
    display: flex;
    justify-content: flex-end;
}

.desktop-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    color: var(--text-muted);
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .desktop-dashboard { padding: 16px; }
    .desktop-topbar { flex-direction: column; align-items: stretch; }
    .desktop-toolbar { grid-template-columns: 1fr; }
    .desktop-new-folder-form { grid-template-columns: 1fr; }
    .desktop-surface { min-height: 620px; padding: 16px; }
    .desktop-icon-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
    .desktop-icon { min-height: 146px; }
    .desktop-folder-window { left: 10px; top: 60px; width: calc(100% - 20px); max-height: calc(100% - 80px); }
}
