@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap');

:root {
    --gf-black: #08080a;
    --gf-black-soft: #16161c;
    --gf-white: #ffffff;
    --gf-purple: #7729ff;
    --gf-purple-dark: #6120d1;
    --gf-purple-soft: #efe7ff;
    --gf-ink: #14141a;
    --gf-muted: #6f7280;
    --gf-surface: rgba(255, 255, 255, 0.96);
    --gf-surface-strong: #ffffff;
    --gf-border: rgba(18, 18, 24, 0.08);
    --gf-shadow: 0 24px 60px rgba(15, 15, 26, 0.12);
    --gf-radius-lg: 1.5rem;
    --gf-radius-md: 1.1rem;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gf-ink);
    background:
        radial-gradient(circle at top left, rgba(119, 41, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(119, 41, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #f5f2ff 0%, #f6f7fb 18%, #fcfcfe 42%, #f4f5fb 100%);
}

body.portal-login-page {
    background:
        linear-gradient(rgba(7, 7, 10, 0.72), rgba(7, 7, 10, 0.88)),
        radial-gradient(circle at top, rgba(119, 41, 255, 0.32), transparent 35%),
        linear-gradient(135deg, #08080a 0%, #16161c 56%, #08080a 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.card-header,
.navbar-brand {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.03em;
}

a {
    color: var(--gf-purple);
}

a:hover {
    color: var(--gf-purple-dark);
}

.portal-main {
    max-width: 1440px;
}

.portal-navbar {
    background: rgba(8, 8, 10, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.portal-guest-header {
    padding: 1.5rem 0 0;
}

.portal-guest-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.25rem;
    padding: 0.9rem 1.4rem;
    border-radius: 1.5rem;
    background: rgba(8, 8, 10, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.portal-guest-brand img {
    height: 2.3rem;
    width: auto;
    display: block;
}

.portal-brand img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.portal-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.portal-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.portal-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 0.75rem;
}

.portal-navbar .portal-nav-link-with-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.portal-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.42rem;
    border-radius: 999px;
    background: var(--gf-purple);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(119, 41, 255, 0.32);
}

.portal-navbar .nav-link:hover,
.portal-navbar .nav-link:focus {
    color: var(--gf-white);
}

.portal-user-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 600;
}

.portal-logout-btn {
    border-color: rgba(255, 255, 255, 0.28);
}

.portal-logout-btn:hover,
.portal-logout-btn:focus {
    background: var(--gf-white);
    color: var(--gf-black);
    border-color: var(--gf-white);
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gf-purple);
    border-color: var(--gf-purple);
    box-shadow: 0 10px 24px rgba(119, 41, 255, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--gf-purple-dark) !important;
    border-color: var(--gf-purple-dark) !important;
}

.btn-outline-secondary {
    color: var(--gf-ink);
    border-color: rgba(20, 20, 26, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--gf-white);
    background: var(--gf-black);
    border-color: var(--gf-black);
}

.card,
.table-responsive,
.modal-content {
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius-lg);
    background: var(--gf-surface);
    box-shadow: var(--gf-shadow);
}

.card-header {
    padding: 1.15rem 1.45rem;
    background: transparent !important;
    border-bottom: 1px solid rgba(20, 20, 26, 0.08);
    font-size: 1.05rem;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

.table-responsive {
    background: transparent;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(119, 41, 255, 0.03);
    --bs-table-hover-bg: rgba(119, 41, 255, 0.05);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    border-bottom-color: rgba(20, 20, 26, 0.08);
}

.table thead th {
    color: var(--gf-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.create-event-finance-summary {
    min-height: 12rem;
}

.create-event-finance-table-wrap {
    border: 1px solid rgba(20, 20, 26, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
}

.create-event-finance-table > tbody > tr:last-child > * {
    border-bottom: 0;
}

.create-event-finance-table th {
    color: var(--gf-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.create-event-finance-table td {
    font-weight: 600;
}

.directory-page-header {
    margin-bottom: 1.5rem;
}

.directory-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.directory-summary-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(119, 41, 255, 0.1);
    color: var(--gf-purple-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.directory-table-card .card-body {
    padding: 0.85rem 0.95rem;
}

.directory-table {
    table-layout: fixed;
}

.directory-table thead th {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.directory-table thead th:first-child,
.directory-table tbody td:first-child {
    padding-left: 1.15rem;
}

.soft-table thead th:first-child,
.soft-table tbody td:first-child {
    padding-left: 1.15rem;
}

.directory-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: top;
}

.directory-name {
    font-weight: 700;
    color: var(--gf-ink);
    line-height: 1.35;
}

.directory-contact,
.directory-phone {
    color: var(--gf-ink);
    line-height: 1.45;
}

.directory-email {
    color: var(--gf-ink);
    line-height: 1.5;
    word-break: break-word;
}

.directory-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.directory-actions form {
    margin: 0;
}

.directory-actions .btn {
    min-width: 0;
}

.settings-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.settings-actions form {
    margin: 0;
}

.settings-actions .btn {
    min-height: 2.15rem;
    padding-inline: 0.9rem;
    font-weight: 700;
}

.settings-actions .btn-outline-primary {
    background: rgba(13, 110, 253, 0.06);
}

.settings-actions .btn-outline-warning {
    background: rgba(255, 193, 7, 0.09);
    color: #9b6b00;
    border-color: rgba(255, 193, 7, 0.9);
}

.settings-actions .btn-outline-warning:hover,
.settings-actions .btn-outline-warning:focus {
    background: #ffc107;
    color: #2b2205;
    border-color: #ffc107;
}

.settings-actions .btn-outline-danger {
    background: rgba(220, 53, 69, 0.05);
}

.directory-empty-state {
    margin: 0.5rem;
}

.artist-registration-steps {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artist-registration-step-pill {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(20, 20, 26, 0.08);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--gf-ink);
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.artist-registration-step-pill:hover,
.artist-registration-step-pill:focus {
    border-color: rgba(119, 41, 255, 0.25);
    box-shadow: 0 12px 24px rgba(119, 41, 255, 0.08);
}

.artist-registration-step-pill-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(20, 20, 26, 0.08);
    font-weight: 800;
}

.artist-registration-step-pill.is-active {
    border-color: rgba(119, 41, 255, 0.38);
    background: rgba(239, 231, 255, 0.95);
    box-shadow: 0 16px 32px rgba(119, 41, 255, 0.12);
    transform: translateY(-1px);
}

.artist-registration-step-pill.is-active .artist-registration-step-pill-number,
.artist-registration-step-pill.is-complete .artist-registration-step-pill-number {
    background: var(--gf-purple);
    color: var(--gf-white);
}

.artist-registration-step-pill.is-complete {
    border-color: rgba(119, 41, 255, 0.22);
}

.artist-registration-step-panel {
    display: none;
    padding: 1.4rem;
    border: 1px solid rgba(20, 20, 26, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
}

.artist-registration-step-panel.is-active {
    display: block;
}

.artist-registration-step-copy {
    max-width: 48rem;
}

.artist-registration-upload-panel,
.artist-upload-item,
.artist-registration-sample-row {
    background: rgba(255, 255, 255, 0.68);
}

.compliance-section-card {
    background: rgba(255, 255, 255, 0.76);
}

.compliance-guidance-card {
    background:
        linear-gradient(180deg, rgba(239, 231, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.compliance-explainer {
    background: rgba(255, 255, 255, 0.86);
}

.compliance-section-card .form-check {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.35rem;
}

.compliance-section-card .form-check-input {
    margin-top: 0;
}

.compliance-section-card .form-check-label {
    margin-left: 0.35rem;
    font-weight: 600;
}

.artist-upload-item .progress {
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(20, 20, 26, 0.08);
}

.artist-upload-item .progress-bar {
    background: var(--gf-purple);
}

.form-control,
.form-select {
    border-radius: var(--gf-radius-md);
    border-color: rgba(20, 20, 26, 0.12);
    padding: 0.75rem 0.95rem;
    background-color: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(119, 41, 255, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(119, 41, 255, 0.14);
}

.alert {
    border: 0;
    border-radius: var(--gf-radius-md);
    box-shadow: 0 14px 28px rgba(20, 20, 26, 0.08);
}

.text-body-secondary {
    color: var(--gf-muted) !important;
}

.display-6 {
    font-weight: 700;
}

.auth-card {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(14, 14, 20, 0.96) 0%, rgba(20, 20, 28, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--gf-white);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-brand img {
    display: block;
    height: 3rem;
    width: auto;
}

.auth-kicker {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-copy {
    color: rgba(255, 255, 255, 0.74);
}

.portal-login-page .form-label {
    color: rgba(255, 255, 255, 0.82);
}

.portal-login-page .form-control {
    color: var(--gf-white);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
}

.portal-login-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.46);
}

.portal-login-page .form-control:focus {
    background: rgba(255, 255, 255, 0.09);
}

.dashboard-gig-card.gig-status-unassigned {
    background-color: var(--bs-danger-bg-subtle);
}

.dashboard-gig-card.gig-status-pending {
    background-color: var(--bs-warning-bg-subtle);
}

.dashboard-gig-card.gig-status-confirmed {
    background-color: var(--bs-success-bg-subtle);
}

.dashboard-gig-card.gig-status-rejected {
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger) !important;
}

.dashboard-gig-card {
    position: relative;
}

.dashboard-gig-notified-badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.65rem;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.dashboard-gig-offer-badge {
    position: absolute;
    top: 0.45rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}

.dashboard-gig-icon-btn {
    padding: 0.15rem 0.35rem;
    line-height: 1;
}

.dashboard-gig-icon-btn i {
    font-size: 0.75rem;
    line-height: 1;
}

.message-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.message-thread-toolbar {
    flex-wrap: wrap;
}

.message-send-form .btn {
    min-width: 8rem;
}

.message-bubble {
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .portal-navbar .nav-link {
        padding-left: 0;
        padding-right: 0;
    }

    .portal-navbar .portal-nav-link-with-pill {
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .card-body,
    .card-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .portal-brand img {
        height: 2.1rem;
    }

    .portal-guest-brand img {
        height: 2rem;
    }

    .directory-table {
        table-layout: auto;
    }

    .directory-actions {
        justify-content: flex-start;
    }

    .settings-actions {
        justify-content: flex-start;
    }

    .messages-filter-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .messages-filter-group .btn {
        width: 100%;
    }

    .message-thread-toolbar {
        width: 100%;
    }

    .message-thread-toolbar .btn {
        flex: 1 1 0;
    }

    .message-contact-details dt,
    .message-contact-details dd {
        width: 100%;
        flex: 0 0 100%;
    }

    .message-contact-details dd {
        margin-bottom: 0.9rem;
    }

    .message-send-form .btn {
        width: 100%;
    }

    .message-bubble-header {
        flex-direction: column;
    }

    .message-bubble-header .text-end {
        width: 100%;
        text-align: left !important;
    }

    .message-table thead {
        display: none;
    }

    .message-table,
    .message-table tbody,
    .message-table tr,
    .message-table td {
        display: block;
        width: 100%;
    }

    .message-table tbody {
        display: grid;
        gap: 0.85rem;
    }

    .message-table tr {
        padding: 0.95rem 1rem;
        border: 1px solid rgba(20, 20, 26, 0.08);
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 24px rgba(15, 15, 26, 0.06);
    }

    .message-table > :not(caption) > * > * {
        border-bottom: 0;
    }

    .message-table td {
        padding: 0.45rem 0;
        text-align: left !important;
    }

    .message-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        color: var(--gf-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .message-table td[data-label="Actions"]::before {
        margin-bottom: 0.45rem;
    }

    .message-row-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .message-row-actions form,
    .message-row-actions .btn,
    .message-row-actions a {
        width: 100%;
    }

    .artist-registration-steps {
        grid-template-columns: 1fr;
    }

    .artist-registration-step-panel {
        padding: 1rem;
    }

    .auth-card .card-body {
        padding: 1.5rem;
    }
}
