/* =========================================
   COUNTERS / STATISTICS
========================================= */

.CountertRow,
.ChartRow,
.PersonalDetails {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin: 10px;
}

.DashCounter,
.ChartPanel,
.Statastics,
.Account-Count {
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    padding: 20px;
    float: left;
    border: 1px solid #e3e1e1;
    color: #000;
    width: 100%;
}

.DashCounter h4 {
    font-size: 15px;
}

.DashCounter span {
    font-size: 20px;
    font-weight: 500;
}

/* KEEP STATISTICS COLORS EXACTLY AS THEY ARE */

.total {
    background: linear-gradient(135deg, #ffcccc, #ff9999);
}

.a-varga {
    background: linear-gradient(135deg, #ffe5b3, #ffd27f);
}

.b-varga {
    background: linear-gradient(135deg, #cce5ff, #99ccff);
}

.b-varga-solo {
    background: linear-gradient(135deg, #d9ccff, #b399ff);
}

.b-varga-partnership {
    background: linear-gradient(135deg, #ccffcc, #99ff99);
}

.DashCounter:last-child,
.Account-Count:last-child,
.ChartPanel:last-child {
    margin-right: 0;
}

.Statastics {
    width: 30%;
}

.DashCounter i {
    background-color: var(--icon-bg);
    color: var(--icon-color);
    font-size: 30px;
    height: 60px;
    line-height: 60px;
    margin-right: 10px;
    text-align: center;
    width: 60px;
    border-radius: 100%;
    float: left;
}


/* =========================================
   SHARED COMPONENTS
   (status badge, primary button, pagination)
========================================= */

/* STATUS BADGE (merged) */

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 92px;
    height: 30px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* GREEN: approved / published */

.status-approved,
.status.approved,
.status-published,
.status.published {
    background: #eaf7ee;
    color: #18794e;
    border: 1px solid #a9d9bd;
}

/* YELLOW: pending */

.status-pending,
.status.pending {
    background: #fff8e1;
    color: #9a6700;
    border: 1px solid #e7c86e;
}

/* RED: rejected / cancelled */

.status-rejected,
.status.rejected,
.status-cancelled,
.status.cancelled {
    background: #fbeaea;
    color: #a31616;
    border: 1px solid #e0b0b0;
}

/* GREY: draft / closed */

.status-draft,
.status.draft,
.status-closed,
.status.closed {
    background: #f3f4f6;
    color: #555;
    border: 1px solid #d1d5db;
}

/* ICON RESETS (status + pagination) */

.status i,
.page-btn i {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border-radius: 0 !important;
}

.status i {
    font-size: 11px;
}

.page-btn i {
    font-size: 10px;
}

/* PRIMARY BUTTON */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 115px;
    height: 34px;
    padding: 0 14px;
    box-sizing: border-box;
    background: #ff9b44;
    color: #fff;
    border: 1px solid #ff9b44;
    border-radius: 4px;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.btn-primary:hover {
    background: #e88932;
    border-color: #e88932;
    color: #fff;
    text-decoration: none;
}

.btn-primary i {
    font-size: 11px;
}

/* PAGINATION BUTTON */

.page-btn {
    min-width: 35px;
    height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    transition: all .2s ease;
}

.page-btn:hover {
    background: #fff4eb;
    border-color: #df651a;
    color: #df651a;
    text-decoration: none;
}

.page-btn.active {
    background: #df651a;
    border-color: #df651a;
    color: #fff;
}

.page-btn.disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* PAGINATION WRAPPERS / LISTS */

.appointments-pagination-wrapper,
.requests-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #fafafa;
    box-sizing: border-box;
}

.appointments-pagination,
.events-pagination,
.requests-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* PAGE INFO TEXT */

.page-info {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}


/* =========================================
   APPOINTMENTS PAGE
========================================= */

.main-content {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* PAGE HEADER */

.department-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e3e1e1;
    border-top: 4px solid #fa5e21;
    border-radius: 5px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.department-card > h1 {
    margin: 0;
    color: #222;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.department-card > h1 i {
    color: #fa5e21;
    margin-right: 8px;
}

.department-card .desc {
    margin: 7px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

/* APPOINTMENTS SECTION */

.recent-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e3e1e1;
    border-radius: 5px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.recent-section > h3 {
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e5e5;
    color: #222;
    font-size: 18px;
    font-weight: 600;
}

.recent-section > h3 i {
    color: #ff9b44;
    margin-right: 7px;
}

.recent-list {
    width: 100%;
}

/* APPOINTMENT ITEM */

.recent-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 25px;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid #eeeeee;
    transition: background-color .2s ease;
}

.recent-item:hover {
    background: #fffaf6;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item .info {
    min-width: 0;
}

.recent-item .info h4 {
    margin: 0 0 13px;
    color: #222;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    word-break: break-word;
}

.recent-item .info h4 i {
    color: #ff9b44;
    margin-right: 7px;
    font-size: 14px;
}

.recent-item .info p {
    margin: 7px 0;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.recent-item .info p strong {
    display: inline-block;
    min-width: 90px;
    color: #333;
    font-weight: 600;
}

.recent-item .details {
    white-space: nowrap;
}

/* EMPTY STATE */

.profile-card {
    margin: 0;
    padding: 55px 20px;
    text-align: center;
    background: #fafafa;
    border: none;
    border-top: 1px solid #eee;
}

.profile-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #aaa !important;
    font-size: 24px !important;
}

.profile-card h4 {
    margin: 5px 0 6px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.profile-card p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

/* PAGINATION */

.appointments-pagination-wrapper {
    padding: 18px 22px;
    border-top: 1px solid #e5e5e5;
}

/* TABLET */

@media (max-width: 900px) {
    .main-content {
        max-width: 100%;
        margin: 25px auto;
        padding: 0 15px;
    }

    .recent-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
    }

    .recent-item .details:last-child {
        grid-column: 2;
        grid-row: 1;
    }

    .recent-item .info {
        grid-column: 1;
    }

    .recent-item .details:not(:last-child) {
        grid-column: 1;
        grid-row: 2;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .main-content {
        width: 100%;
        margin: 15px auto;
        padding: 0 10px;
    }

    .department-card {
        padding: 18px;
        border-radius: 4px;
    }

    .department-card > h1 {
        font-size: 21px;
    }

    .department-card > h1 i {
        margin-right: 6px;
    }

    .department-card .CountertRow {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 18px 0 0;
    }

    .recent-section {
        margin-top: 15px;
        border-radius: 4px;
    }

    .recent-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px 16px;
    }

    .recent-item .info {
        width: 100%;
    }

    .recent-item .details {
        width: 100%;
        white-space: normal;
    }

    .recent-item .details .status {
        min-width: 95px;
    }

    .recent-item .details .btn-primary {
        width: 100%;
        min-width: 0;
        height: 36px;
    }

    .recent-item .info h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .recent-item .info p {
        font-size: 12px;
        margin: 8px 0;
    }

    .recent-item .info p strong {
        display: block;
        min-width: 0;
        margin-bottom: 2px;
    }

    .appointments-pagination-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 12px;
    }

    .appointments-pagination {
        width: 100%;
        justify-content: center;
    }

    .page-info {
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .profile-card {
        padding: 45px 15px;
    }
}

/* SMALL MOBILE */

@media (max-width: 400px) {
    .main-content {
        padding: 0 8px;
    }

    .department-card {
        padding: 15px;
    }

    .department-card > h1 {
        font-size: 19px;
    }

    .recent-item {
        padding: 16px 13px;
    }

    .appointments-pagination {
        gap: 4px;
    }
}


/* =========================================================
   DASHBOARD — EVENTS SECTION
========================================================= */

.nirmata-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 40px;
    box-sizing: border-box;
}

.dashboard-header {
    margin-bottom: 22px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-header h1 i {
    color: #df651a;
    margin-right: 8px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.events-section {
    width: 100%;
}

.events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.events-header h2 {
    margin: 0;
    padding-left: 0;
    border-left: none;
    font-size: 19px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.events-header h2 i {
    color: #df651a;
    font-size: 17px;
}

/* EVENT CARD */

.nirmata-event-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    padding: 12px 145px 12px 12px;
    margin-bottom: 10px;
    min-height: 125px;
    box-sizing: border-box;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.04);
}

.nirmata-event-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.nirmata-event-card .event-image {
    width: 120px;
    height: 90px;
    min-width: 120px;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nirmata-event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nirmata-event-card .event-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #b0b0b0;
    font-size: 25px;
}

.nirmata-event-card .event-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.nirmata-event-card .event-title i {
    width: 31px;
    height: 31px;
    min-width: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #fff4eb;
    color: #df651a;
    font-size: 13px;
}

.nirmata-event-card .event-title h3 {
    margin: 0;
    flex: 1;
    text-align: left;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nirmata-event-card .event-info {
    display: inline-block;
    margin-right: 25px;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
}

.nirmata-event-card .event-info strong {
    color: #374151;
    font-weight: 600;
    margin-right: 4px;
}

.nirmata-event-card .event-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* only what differs from the shared .btn-primary */
.nirmata-event-card .btn-primary {
    height: 32px;
    min-width: 82px;
    padding: 0 12px;
    gap: 5px;
    background: #fa5e21;
    border-color: #fa5e21;
    font-size: 11px;
}

.nirmata-event-card .btn-primary:hover {
    background: #d94d02;
    border-color: #d94d02;
    color: #ffffff;
}

/* EVENTS PAGINATION */

.events-pagination-wrapper {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.events-pagination {
    justify-content: center;
}

.events-pagination-wrapper .page-info {
    margin-top: 8px;
    color: #6b7280;
    font-size: 11px;
}

/* EMPTY STATE */

.no-events {
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-top: 3px solid #df651a;
    border-radius: 5px;
    padding: 45px 20px;
    text-align: center;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.04);
}

.no-events i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #9ca3af;
    font-size: 21px;
}

.no-events h3 {
    margin: 0 0 6px;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.no-events p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

/* TABLET */

@media (max-width: 900px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .nirmata-event-card {
        padding-right: 125px;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .nirmata-dashboard {
        padding: 20px 14px 30px;
    }

    .dashboard-header h1 {
        font-size: 23px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .events-header h2 {
        font-size: 17px;
    }

    .nirmata-event-card {
        padding: 15px;
        padding-bottom: 58px;
    }

    .nirmata-event-card .event-title h3 {
        font-size: 15px;
    }

    .nirmata-event-card .event-info {
        display: block;
        margin-right: 0;
        margin-bottom: 7px;
        font-size: 12px;
    }

    .nirmata-event-card .event-actions {
        left: 15px;
        right: 15px;
        top: auto;
        bottom: 12px;
        transform: none;
        justify-content: flex-end;
    }

    .nirmata-event-card .btn-primary {
        width: 90px;
    }

    .page-btn {
        min-width: 33px;
        height: 33px;
        padding: 0 8px;
        font-size: 11px;
    }
}

/* VERY SMALL MOBILE */

@media (max-width: 430px) {
    .nirmata-event-card .event-actions {
        justify-content: stretch;
    }

    .nirmata-event-card .btn-primary {
        width: 100%;
    }

    .events-pagination {
        gap: 4px;
    }

    .page-btn {
        min-width: 31px;
        height: 31px;
        padding: 0 7px;
    }
}


/* =========================================================
   REQUESTS SECTION
========================================================= */

.requests-section {
    background: #fff;
    border: 1px solid #e3e1e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    box-sizing: border-box;
}

.requests-section-header {
    padding: 18px 20px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.requests-section-header h2 {
    margin: 0;
    color: #222;
    font-size: 18px;
    font-weight: 600;
}

.requests-section-header h2 i {
    color: #fa5e21;
    margin-right: 7px;
}

.nirmata-request-card {
    padding: 20px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    transition: background-color .2s ease;
}

.nirmata-request-card:last-child {
    border-bottom: none;
}

.nirmata-request-card:hover {
    background: #fffdf8;
}

.request-info h3 {
    margin: 0 0 15px;
    color: #222;
    font-size: 16px;
    font-weight: 600;
}

.request-info h3 i {
    color: #fa5e21;
    margin-right: 7px;
}

.request-info p {
    margin: 8px 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.request-info p strong {
    display: inline-block;
    width: 110px;
    color: #333;
    font-weight: 600;
}

.request-status {
    margin-top: 14px;
}

/* ACTIONS */

.request-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
    top: 15px;
}

.request-actions form {
    display: inline-flex !important;
    margin: 0;
    padding: 0;
}

.request-actions .btn-primary,
.request-actions .btn-danger,
.request-actions .btn-warning,
.request-actions .btn-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 118px;
    min-width: 118px;
    height: 34px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.request-actions .btn-primary,
.request-actions .btn-danger {
    background: #fa5e21;
    color: #fff;
    border: 1px solid #fa5e21;
}

.request-actions .btn-primary:hover,
.request-actions .btn-danger:hover {
    background: #d94d02;
    border-color: #d94d02;
    color: #fff;
}

.request-actions .btn-warning {
    background: #fff8e1;
    color: #9a6700;
    border: 1px solid #e5c76b;
}

.request-actions .btn-warning:hover {
    background: #fff1c7;
    border-color: #d7b34d;
    color: #765000;
}

.request-actions .btn-verified {
    background: #eaf7ee;
    color: #18794e;
    border: 1px solid #a9d9bd;
    cursor: default;
}

.request-actions i {
    width: 13px;
    text-align: center;
    flex-shrink: 0;
}

/* REQUESTS PAGINATION */

.requests-pagination-wrapper {
    padding: 18px 20px;
    border-top: 1px solid #ddd;
}

/* only what differs from the shared .page-btn */
.requests-pagination .page-btn {
    min-width: 34px;
    border-color: #d0d0d0;
    color: #444;
}

.requests-pagination a.page-btn:hover,
.requests-pagination .page-btn.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

.requests-pagination .page-btn.disabled {
    background: #f3f3f3;
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

/* EMPTY STATE */

.no-requests {
    text-align: center;
    padding: 55px 20px;
}

.no-requests > i {
    width: auto;
    height: auto;
    display: inline-block;
    border-radius: 0;
    background: transparent;
    color: #f59e0b;
    font-size: 32px;
}

.no-requests h3 {
    margin: 15px 0 6px;
    color: #333;
    font-size: 16px;
}

.no-requests p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

/* OTP POPUP */

.Popup-Container {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .55);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.Popup-content {
    position: relative;
    width: 420px;
    max-width: calc(100% - 30px);
    background: #fff;
    border-radius: 6px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

.Popup-close-btn {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 25px;
    color: #777;
    cursor: pointer;
    line-height: 1;
}

.Popup-close-btn:hover {
    color: #222;
}

.Popup-content h2 {
    margin: 0 0 15px;
    color: #222;
    font-size: 20px;
}

.Note-Sec {
    margin: 12px 0;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.Note-Sec p {
    margin: 4px 0;
}

.Otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.Otp-inputs input {
    width: 42px;
    height: 45px;
    box-sizing: border-box;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    background: #fff;
}

.Otp-inputs input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .12);
}

.Popup-Submit-btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: #f59e0b;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.Popup-Submit-btn:hover {
    background: #d97706;
}

.minutes_value,
.seconds_value {
    color: #d97706;
    font-weight: 600;
}

.Master-Btn-Container {
    text-align: center;
    margin-top: 12px;
}

.Master-Btn-Container a {
    color: #d97706;
    font-size: 13px;
    text-decoration: none;
}

.Master-Btn-Container a:hover {
    text-decoration: underline;
}

.disabled-link {
    pointer-events: none;
    opacity: .45;
}

#artistOtpMessage {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    min-height: 18px;
}


/* =========================================================
   EVENT PAGES
   Event detail (artist + nirmata), create/edit event form,
   and My Events list. Everything is scoped under .event-page
   so nothing leaks into the dashboard, appointments or
   requests styles above. Page-specific tweaks use :has().
========================================================= */

/* PAGE */

.event-page,
.appointment-page {
    max-width: 950px;
    margin: 30px auto;
    padding: 0 20px;
    color: #222;
}

/* My Events list page keeps its orange text colour */
.event-page:has(.recent-events-card) {
    color: #fa5e21;
}


/* BREADCRUMB */

.event-page .breadcrumb,
.appointment-page .breadcrumb {
    width: 100vw;
    position: relative;
    left: calc(-50vw + 50%);
    text-align: left;
    padding-left: 140px;
    box-sizing: border-box;
    margin-top: -20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #777;
}

.event-page .breadcrumb a,
.appointment-page .breadcrumb a {
    color: #fa5e21;
    text-decoration: none;
    font-weight: 500;
}

.event-page .breadcrumb a:hover,
.appointment-page .breadcrumb a:hover {
    color: #d94d02;
}

.event-page .breadcrumb span,
.appointment-page .breadcrumb span {
    margin-left: 6px;
}


/* MAIN CARD */

.event-card {
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Detail pages: thick orange top border */
.event-card:has(.event-summary) {
    border-top: 10px solid #f4772a;
}

/* Form page: always a thin top border */
.event-page .event-card:has(.form-section) {
    border-top: 1px solid #d6d6d6 !important;
}

/* My Events list page: tinted card */
.event-card:has(.recent-events-card) {
    background: #efd2c4;
}


/* HEADER */

.event-page .event-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    padding-bottom: 18px;
}

/* Detail pages: badge sits next to the title */
.event-card:has(.event-summary) .event-title {
    justify-content: flex-start;
    gap: 20px;
}

/* Form page: no line under the header */
.event-card:has(.form-section) .event-title {
    border-bottom: none;
    margin-bottom: 5px;
}

.event-page .event-title-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-page .event-title h1 {
    margin: 0;
    font-size: 24px;
    color: #111;
    font-weight: 700;
    text-align: left;
}

.event-page .event-title p {
    margin: 5px 0 0;
    color: #777;
    font-size: 13px;
    text-align: left;
}


/* REMOVE DECORATIVE BORDERS / LINES FROM HEADINGS AND LABELS
   (stops inherited global CSS from showing them) */

.event-page h1,
.event-page h2,
.event-page h3,
.event-page label,
.event-page .form-section,
.event-page .form-group {
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

.event-page h1::before,
.event-page h1::after,
.event-page h2::before,
.event-page h2::after,
.event-page h3::before,
.event-page h3::after,
.event-page label::before,
.event-page label::after {
    content: none !important;
    display: none !important;
}

.event-page .section-header,
.event-page .recent-events-card,
.event-page .recent-item {
    border-left: none !important;
}


/* STATUS BADGES (only what differs from the shared .status) */

.event-page .status {
    min-width: 70px;
    height: 26px;
    padding: 0 9px;
}

.event-page .status.published {
    background: #fff3e6;
    color: #c76f1d;
    border: 1px solid #f2c08a;
}

.event-page .status.draft {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #bbb;
}

.event-page .status.closed {
    background: #e5e5e5;
    color: #555;
    border: 1px solid #aaa;
}

.event-page .status.cancelled {
    background: #f8e1e1;
    color: #a31616;
    border: 1px solid #d99;
}

/* Detail pages: compact grey badge in the header */

.event-page .event-title .status {
    min-width: 0;
    height: auto;
    padding: 5px 11px;
    font-size: 12px;
    line-height: normal;
}

.event-page .event-title .status.published {
    background: #f2f2f2;
    color: #222;
    border: 1px solid #bbb;
}

/* List page: wrapper around the badge */

.event-page .event-status {
    white-space: nowrap;
}


/* EVENT SUMMARY (detail) */

.event-summary {
    display: flex;
    gap: 60px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.event-summary > div {
    flex: 1;
}

.event-summary strong {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 400;
}

.event-summary small {
    font-size: 14px;
    color: #222;
    font-weight: 700;
}


/* EVENT DETAILS (detail) */

.event-card h2 {
    font-size: 18px;
    margin: 22px 0 10px;
    color: #111;
    padding-left: 9px;
}

.event-page .details {
    border-top: 1px solid #ddd;
}

.event-page .details p {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    align-items: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.event-page .details p > span {
    padding-left: 40px;
    display: flex;
}

.event-page .details p > span::after {
    content: ":";
    margin-left: auto;
    margin-right: 10px;
}

.event-page .details span {
    color: #222222;
    font-weight: 600;
    font-size: 14px;
}

.event-page .details strong {
    color: #222;
    font-weight: 200;
}


/* DESCRIPTION / CONTENT SECTIONS (detail) */

.event-page .content-section {
    margin-top: 22px;
    padding-top: 5px;
}

.event-page .content-section h3 {
    margin: 0 0 10px;
    padding-left: 9px;
    font-size: 15px;
    color: #222;
    font-weight: 600;
    text-align: left;
}

.event-page .content-section p {
    margin: 0;
    padding-left: 9px;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    white-space: pre-line;
}


/* ARTIST MANAGEMENT (nirmata detail) */

.event-page .artist-management {
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.event-page .artist-management > p {
    margin-bottom: 15px;
}

.event-page .artist-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}


/* BOTTOM ACTIONS (detail) */

.event-page .action {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.event-page .action-left {
    display: flex;
    align-items: center;
}

.event-page .action-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-page .action-right form {
    margin: 0;
    padding: 0;
}

/* Outlined buttons: View Event Image, Publish Event */

.event-page .view-image-button,
.event-page .action .publish-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 15px;
    box-sizing: border-box;
    background: #fff;
    color: #fa5e21;
    border: 1px solid #fa5e21;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-page .view-image-button:hover,
.event-page .action .publish-button:hover {
    background: #fff7ef;
    border-color: #d94d02;
    color: #d94d02;
}

/* Filled link buttons: Edit Event, Find Artists / View Requests */

.event-page .edit-button,
.event-page .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 15px;
    box-sizing: border-box;
    background: #fa5329;
    color: #fff;
    border: 1px solid #fa5329;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-page .edit-button:hover,
.event-page .action-button:hover {
    background: #b23601;
    border-color: #b23601;
    color: #fff;
}

/* Form buttons: Interested / Request Sent / Event Not Available */

.event-page .action button {
    background: #fa5329;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.event-page .action button:hover {
    background: #b23601;
}

.event-page .action button:disabled {
    background: #999;
    cursor: not-allowed;
}


/* =========================================================
   CREATE / EDIT EVENT FORM
========================================================= */

.event-page .form-section {
    margin-top: 20px;
}

.event-page .form-section label {
    display: block;
    margin-bottom: 7px;
    color: #222;
    font-size: 13px;
    font-weight: 600;
}

.event-page .form-section input,
.event-page .form-section select,
.event-page .form-section textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 10px 11px;
    font-family: inherit;
    font-size: 13px;
    color: #222;
    background: #fff;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.event-page .form-section textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

.event-page .form-section input:focus,
.event-page .form-section select:focus,
.event-page .form-section textarea:focus {
    border-color: #ff9b44;
    box-shadow: 0 0 0 2px rgba(255, 155, 68, 0.10);
}

.event-page .form-section input::placeholder,
.event-page .form-section textarea::placeholder {
    color: #aaa;
}

.event-page .form-section small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 11px;
}

.event-page .form-section input[type="file"] {
    padding: 8px;
    cursor: pointer;
    background: #fff;
}

/* Date + time side by side */

.event-page .form-row {
    display: flex;
    gap: 25px;
}

.event-page .form-row .form-section {
    flex: 1;
}

/* Current event image */

.event-page .current-image {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #777;
}

.event-page .current-image a {
    color: #d47722;
    text-decoration: none;
    font-weight: 500;
}

.event-page .current-image a:hover {
    color: #e8842f;
    text-decoration: underline;
}

/* Bottom buttons */

.event-page .event-actions-bottom {
    margin-top: 25px;
    padding-top: 18px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.event-page .cancel-btn,
.event-page .save-btn {
    width: 130px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #fa5e21;
    color: #fff;
    border: 1px solid #fa5e21;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-page .cancel-btn:hover,
.event-page .save-btn:hover {
    background: #d94d02;
    border-color: #d94d02;
    color: #fff;
}


/* =========================================================
   MY EVENTS LIST
========================================================= */

/* Create Event button */

.event-page .create-event-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    box-sizing: border-box;
    background: #fa5e21;
    color: #fff;
    border: 1px solid #fa5e21;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.event-page .create-event-btn:hover {
    background: #d94d02;
    border-color: #d94d02;
    color: #fff;
}

/* Filter */

.event-page .event-filter {
    margin-top: 20px;
}

.event-page .event-filter label {
    display: block;
    margin-bottom: 7px;
    padding-left: 0;
    color: #222;
    font-size: 13px;
    font-weight: 600;
}

.event-page .event-filter select {
    width: 280px;
    max-width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.event-page .event-filter select:focus {
    border-color: #ff9b44;
    box-shadow: 0 0 0 2px rgba(255, 155, 68, 0.12);
}

/* Events card + section header */

.event-page .recent-events-card {
    margin-top: 20px;
    border-top: 1px solid #d6d6d6;
}

.event-page .section-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
    margin-bottom: 0;
}

.event-page .section-header h2 {
    margin: 0;
    padding-left: 0;
    font-size: 18px;
    color: #111;
}

/* Event row */

.event-page .recent-item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto auto;
    gap: 15px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.event-page .recent-item:hover {
    background: transparent;
}

.event-page .recent-item:last-child {
    border-bottom: none;
}

.event-page .event-image {
    width: 100px;
    height: 75px;
    margin-left: 10px;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.event-page .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Event information */

.event-page .event-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #222;
    font-weight: 600;
}

.event-page .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.event-page .event-meta p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.event-page .event-meta span {
    color: #888;
    font-size: 11px;
}

.event-page .event-meta strong {
    color: #444;
    font-size: 12px;
    font-weight: 500;
}

/* Row actions */

.event-page .event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.event-page .event-actions a {
    width: 68px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.event-page .view-btn {
    background: #fa5e21;
    color: #fff;
    border: 1px solid #fa5e21;
}

.event-page .view-btn:hover {
    background: #d94d02;
    color: #fff;
    border-color: #d94d02;
}

.event-page .edit-btn {
    background: #fff;
    color: #444;
    border: 1px solid #bbb;
}

.event-page .edit-btn:hover {
    background: #fff7ef;
    color: #d47722;
    border-color: #ffb56f;
}

.event-page .delete-btn {
    background: #fff;
    color: #f80202;
    border: 1px solid #e2b0b0;
}

.event-page .delete-btn:hover {
    background: #fdf0f0;
    color: #e05265;
    border-color: #d99;
}

/* Empty state */

.event-page .empty-events {
    text-align: center;
    padding: 50px 20px;
}

.event-page .empty-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3e6;
    color: #ff9b44;
    font-size: 21px;
}

.event-page .empty-events h3 {
    margin: 0 0 6px;
    color: #333;
    font-size: 16px;
}

.event-page .empty-events p {
    margin: 0 0 18px;
    color: #888;
    font-size: 13px;
}

.event-page .create-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 15px;
    background: #ff9b44;
    color: #fff;
    border: 1px solid #ff9b44;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.event-page .create-empty-btn:hover {
    background: #e8842f;
    color: #fff;
    border-color: #e8842f;
}

/* Pagination (only what differs from the shared .page-btn / events pagination) */

.event-page .events-pagination-wrapper {
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
    gap: 8px;
}

.event-page .page-btn {
    min-width: 34px;
    height: 32px;
    border-color: #d0d0d0;
    color: #444;
}

.event-page .page-btn:hover {
    background: #fff3e6;
    color: #ff9b44;
    border-color: #ff9b44;
}

.event-page .page-btn.active {
    background: #ff9b44;
    color: #ffffff;
    border-color: #ff9b44;
    font-weight: 600;
    cursor: default;
}

.event-page .page-btn.disabled {
    background: #f7f7f7;
    color: #aaa;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.event-page .events-pagination-wrapper .page-info {
    margin-top: 0;
    color: #888;
    font-size: 11px;
    text-align: center;
}


/* =========================================================
   APPOINTMENT AGREEMENT PAGE
   (page wrapper + breadcrumb are shared with the event pages above)
========================================================= */

/* DOCUMENT */

.appointment-page .appointment-document {
    background: #fff;
    border: 1px solid #d6d6d6;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

/* HEADER */

.appointment-page .document-header {
    padding: 30px 35px 25px;
    text-align: center;
    border-bottom: 3px solid #fa5e21;
}

.appointment-page .document-header h1 {
    margin: 0;
    color: #fa5e21;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.appointment-page .document-header h2 {
    margin: 8px 0 0;
    color: #333;
    font-size: 17px;
    font-weight: 600;
}

.appointment-page .document-header p {
    margin: 10px 0 0;
    color: #777;
    font-size: 12px;
}

/* META */

.appointment-page .document-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 20px 35px;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
}

.appointment-page .meta-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
}

.appointment-page .meta-item span {
    color: #777;
}

.appointment-page .meta-item strong {
    color: #222;
    font-weight: 600;
}

/* BODY + SECTIONS */

.appointment-page .document-body {
    padding: 30px 35px;
}

.appointment-page .document-section {
    margin-bottom: 28px;
}

.appointment-page .section-title {
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    color: #fa5e21;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.appointment-page .section-title i {
    margin-right: 7px;
}

/* INFORMATION GRID */

.appointment-page .info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 30px;
}

.appointment-page .info-item {
    min-height: 42px;
}

.appointment-page .info-label {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.appointment-page .info-value {
    color: #222;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

/* AGREEMENT INTRO */

.appointment-page .agreement-introduction {
    padding: 18px;
    background: #fafafa;
    border-left: 3px solid #fa5e21;
    color: #444;
    font-size: 13px;
    line-height: 1.7;
}

.appointment-page .agreement-introduction strong {
    color: #222;
}

/* STATUS BOXES */

.appointment-page .status-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.appointment-page .status-box {
    padding: 13px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.appointment-page .status-box span {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.appointment-page .status-box strong {
    color: #22870b;
    font-size: 12px;
}

/* TERMS */

.appointment-page .terms-list {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 12px;
    line-height: 1.8;
}

.appointment-page .terms-list li {
    margin-bottom: 5px;
}

/* SIGNATURES */

.appointment-page .signature-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #ccc;
}

.appointment-page .signature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
}

.appointment-page .signature-box {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.appointment-page .signature-title {
    margin-bottom: 12px;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.appointment-page .signature-image-wrapper {
    height: 75px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.appointment-page .signature-image {
    max-width: 190px;
    max-height: 65px;
    object-fit: contain;
    object-position: left bottom;
}

.appointment-page .no-signature {
    color: #aaa;
    font-size: 11px;
    font-style: normal;
}

.appointment-page .signature-line {
    width: 100%;
    border-top: 1px solid #333;
    margin-top: 5px;
}

.appointment-page .signature-name {
    margin-top: 8px;
    color: #222;
    font-size: 12px;
    font-weight: 600;
}

.appointment-page .signature-role {
    margin-top: 3px;
    color: #777;
    font-size: 11px;
}

.appointment-page .signature-date {
    margin-top: 10px;
    color: #555;
    font-size: 11px;
}

/* FOOTER */

.appointment-page .document-footer {
    padding: 18px 35px;
    background: #fafafa;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #777;
    font-size: 10px;
    line-height: 1.6;
}

/* ACTION BUTTONS (only what differs from the shared .btn-primary) */

.appointment-page .document-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.appointment-page .btn-primary {
    gap: 7px;
    min-width: 0;
    height: auto;
    min-height: 38px;
    padding: 0 18px;
    background: #991b1b;
    border-color: #991b1b;
}

.appointment-page .btn-primary:hover {
    background: #7f1d1d;
    border-color: #7f1d1d;
    color: #fff;
    text-decoration: none;
}


/* =========================================================
   EVENT PAGES — MOBILE
========================================================= */

@media (max-width: 700px) {

    .event-page,
    .appointment-page {
        margin: 15px auto;
        padding: 0 10px;
    }

    .event-page .breadcrumb,
    .appointment-page .breadcrumb {
        padding-left: 15px;
    }

    .event-card {
        padding: 18px;
    }

    .event-page .event-title,
    .event-card:has(.event-summary) .event-title {
        flex-direction: column;
        gap: 12px;
    }

    .event-page .event-title h1 {
        font-size: 21px;
    }

    /* Detail */

    .event-summary {
        flex-direction: column;
        gap: 12px;
    }

    .event-page .details p {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .event-page .details p > span {
        padding-left: 0;
    }

    .event-page .details p > span::after {
        display: none;
    }

    .event-page .details strong {
        text-align: left;
    }

    .event-page .artist-actions {
        flex-direction: column;
    }

    .event-page .action {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .event-page .action-left {
        width: 100%;
    }

    .event-page .action-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .event-page .view-image-button,
    .event-page .edit-button,
    .event-page .action-button,
    .event-page .action .publish-button,
    .event-page .action button {
        width: 100%;
    }

    /* Form */

    .event-page .form-row {
        flex-direction: column;
        gap: 0;
    }

    .event-page .event-actions-bottom {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .event-page .cancel-btn,
    .event-page .save-btn {
        width: 100%;
        height: 40px;
    }

    /* List */

    .event-page .create-event-btn {
        width: 100%;
    }

    .event-page .event-filter select {
        width: 100%;
    }

    .event-page .recent-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .event-page .event-status {
        justify-self: flex-start;
    }

    .event-page .event-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* Appointment agreement */

    .appointment-page .document-header {
        padding: 24px 18px 20px;
    }

    .appointment-page .document-header h1 {
        font-size: 20px;
    }

    .appointment-page .document-header h2 {
        font-size: 15px;
    }

    .appointment-page .document-meta {
        grid-template-columns: 1fr;
        padding: 16px 18px;
    }

    .appointment-page .document-body {
        padding: 22px 18px;
    }

    .appointment-page .info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .appointment-page .status-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .appointment-page .signature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .appointment-page .signature-box {
        min-height: 160px;
    }

    .appointment-page .document-footer {
        padding: 16px 18px;
    }

}

/* =========================================================
   APPOINTMENT AGREEMENT — PRINT
========================================================= */

@media print {

    body:has(.appointment-page) {
        background: #fff !important;
    }

    body:has(.appointment-page) nav,
    .appointment-page .document-actions {
        display: none !important;
    }

    .appointment-page {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .appointment-page .appointment-document {
        border: none;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .appointment-page .document-header {
        border-bottom: 2px solid #991b1b;
    }

    .appointment-page .signature-section {
        page-break-inside: avoid;
    }

}


/* =========================================================
   BROWSE EVENTS PAGE
   Classes that also exist above (.events-section, .event-image,
   .event-actions, .btn-primary, .no-events, .page-btn, .page-info,
   .events-pagination-wrapper) are scoped under .nirmata-browse
   so they don't change the dashboard / requests / event pages.
========================================================= */

/* SEARCH BOX */

.event-search {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #007bff;
}

.event-search .search-form .search-btn {
    width: auto !important;
    max-width: 110px !important;
    min-width: 90px !important;

    flex: 0 0 auto !important;

    height: 42px !important;
    padding: 0 16px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #eb5d25 !important;
    color: #ffffff !important;

    border: 1px solid #ebecee !important;
    border-radius: 6px !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    white-space: nowrap !important;
    box-sizing: border-box !important;
    cursor: pointer;
}

.event-search .search-form .search-btn:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}


/* PAGE WRAPPER + HEADER */

.nirmata-browse {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 35px;
    box-sizing: border-box;
}

.browse-header {
    margin-bottom: 20px;
}

.browse-header h1 {
    margin: 0 0 5px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 9px;
}

.browse-header h1 i {
    color: #eb7125;
    font-size: 23px;
}

.browse-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}


/* EVENTS SECTION + HEADER */

.nirmata-browse .events-section {
    background: #efd2c4;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.events-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.events-section-header h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

.events-section-header h2 i {
    color: #eb6425;
    font-size: 17px;
}


/* EVENT CARD */

.artist-event-card {
    position: relative;
    padding: 16px;
    padding-bottom: 62px;
    margin-bottom: 10px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;

    box-sizing: border-box;

    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.artist-event-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 11px;
}

.artist-event-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.artist-event-title > i {
    width: 32px;
    height: 32px;
    min-width: 32px;

    border-radius: 7px;

    background: #eff6ff;
    color: #eb5a25;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
}

.artist-event-title h3 {
    margin: 0;

    font-size: 17px;
    font-weight: 600;

    color: #0f172a;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    min-width: 0;
}


/* EVENT IMAGE (same style as My Events page) */

.nirmata-browse .event-image {
    width: 100px;
    height: 75px;
    min-width: 100px;

    overflow: hidden;

    border-radius: 5px;

    background: #f5f5f5;
    border: 1px solid #e0e0e0;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}

.nirmata-browse .event-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.nirmata-browse .event-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f5;
    color: #94a3b8;

    font-size: 22px;
}


/* EVENT DETAILS */

.event-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    column-gap: 22px;
    row-gap: 7px;

    padding-left: 112px;
    padding-right: 175px;

    margin-top: -40px;
}

.artist-event-info {
    margin: 0;

    font-size: 13px;
    color: #64748b;

    white-space: nowrap;
}

.artist-event-info strong {
    color: #334155;
    font-weight: 600;
}


/* ACTION BUTTONS */

.nirmata-browse .event-actions {
    position: absolute;

    right: 17px;
    bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin: 0;
    padding: 0;

    border: none;

    width: auto;
}

.nirmata-browse .event-actions form {
    display: block;

    width: auto;

    margin: 0;
    padding: 0;
}

/* View button (only what differs from the shared .btn-primary) */

.nirmata-browse .event-actions .btn-primary {
    width: auto;
    min-width: 78px;

    height: 36px;

    padding: 0 13px;

    border-radius: 6px;

    gap: 6px;

    font-size: 13px;

    transition: 0.2s;
}

.nirmata-browse .event-actions .btn-primary i {
    font-size: 12px;
}

/* Connect button */

.btn-connect {
    width: auto;
    min-width: 118px;

    height: 36px;

    padding: 0 13px;

    border-radius: 6px;

    border: 1px solid #f3f3f3;

    background: #fa5e21;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    white-space: nowrap;

    box-sizing: border-box;

    transition: 0.2s;
}

.btn-connect:hover:not(:disabled) {
    background: #d94d02;
    border-color: #d94d02;
}

.btn-connect:disabled {
    background: #f8fafc;
    color: #64748b;
    border-color: #cbd5e1;
    cursor: not-allowed;
}

.btn-connect i {
    font-size: 12px;
}


/* PAGINATION (only what differs from the shared pagination above) */

.nirmata-browse .events-pagination-wrapper {
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid #e2e8f0;
}

.nirmata-browse .page-btn {
    min-width: 36px;
    height: 36px;
    border-color: #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.2s;
}

.nirmata-browse .page-btn:hover {
    background: #d94d02;
    border-color: #eff6ff;
    color: #fbf7f6;
}

.nirmata-browse .page-btn.active {
    background: #fa5e21;
    border-color: #eff6ff;
    color: #ffffff;
}

.nirmata-browse .page-btn.disabled {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.nirmata-browse .page-info {
    margin-top: 9px;
    color: #64748b;
}


/* EMPTY STATE */

.nirmata-browse .no-events {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    box-shadow: none;
}

.nirmata-browse .no-events i {
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    border-radius: 0;
    background: transparent;
    font-size: 38px;
    color: #94a3b8;
}

.nirmata-browse .no-events h3 {
    margin: 0 0 6px;
    color: #334155;
    font-size: 17px;
}

.nirmata-browse .no-events p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}


/* BROWSE — MOBILE */

@media (max-width: 700px) {

    .nirmata-browse {
        padding: 20px 14px 30px;
    }

    .browse-header h1 {
        font-size: 23px;
    }

    .browse-header p {
        font-size: 13px;
    }

    /* Search */

    .event-search {
        padding: 10px;
        margin-bottom: 18px;
    }

    .search-form {
        gap: 8px;
    }

    .search-input {
        height: 40px;
        font-size: 13px;
    }

    .search-btn {
        height: 40px;
        min-width: 42px;
        width: 42px;
        padding: 0;
    }

    .search-btn span {
        display: none;
    }

    /* Event card */

    .artist-event-card {
        padding: 14px;
        padding-bottom: 14px;

        min-height: 0;

        margin-bottom: 9px;
    }

    .artist-event-top {
        margin-bottom: 10px;
    }

    .artist-event-title {
        gap: 10px;
    }

    .nirmata-browse .event-image {
        width: 85px;
        height: 65px;
        min-width: 85px;
    }

    .artist-event-title h3 {
        font-size: 15px;
    }

    /* Details */

    .event-details {
        padding-left: 0;
        padding-right: 0;

        display: grid;

        grid-template-columns: 1fr;

        gap: 6px;

        margin-bottom: 13px;
    }

    .artist-event-info {
        white-space: normal;

        font-size: 12.5px;
    }

    /* Buttons */

    .nirmata-browse .event-actions {
        position: static;

        width: 100%;

        margin-top: 12px;

        padding-top: 11px;

        border-top: 1px solid #f1f5f9;

        display: flex;

        align-items: center;

        justify-content: flex-end;
    }

    .nirmata-browse .event-actions .btn-primary {
        height: 35px;
    }

    .btn-connect {
        height: 35px;
    }

    /* Pagination */

    .nirmata-browse .events-pagination-wrapper {
        margin-top: 20px;
        padding-top: 14px;
    }

    .nirmata-browse .page-btn {
        min-width: 34px;
        height: 34px;

        padding: 0 8px;

        font-size: 12px;
    }
}


/* BROWSE — VERY SMALL MOBILE */

@media (max-width: 430px) {

    .nirmata-browse .event-image {
        width: 75px;
        height: 58px;
        min-width: 75px;
    }

    .nirmata-browse .event-actions {
        justify-content: stretch;
    }

    .nirmata-browse .event-actions .btn-primary,
    .nirmata-browse .event-actions form,
    .nirmata-browse .event-actions .btn-connect {
        flex: 1;
    }

    .nirmata-browse .event-actions .btn-primary,
    .nirmata-browse .event-actions .btn-connect {
        width: 100%;
        min-width: 0;
    }

    .nirmata-browse .events-pagination {
        gap: 4px;
    }

    .nirmata-browse .page-btn {
        min-width: 32px;
        height: 32px;

        padding: 0 7px;
    }
}

button,
input,
textarea {
    font-family: inherit;
}


/* FORM CONTAINER */

.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    width: 80%;
    max-width: 700px;
    margin: 40px auto;
    border-top: 10px solid #fa5e21;
}

.registration-page h1 {
    color: #fa5e21 !important;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
}


/* FORM FIELDS */

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .field {
    flex: 1;
}

.form-container label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

.form-container .form-control {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

.form-container .form-control:focus {
    border-color: #fa5e21;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.08);
}

.form-container textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.password-message {
    font-size: 14px;
}


/* REGISTER BUTTON */

.buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.buttons .btn {
    display: inline-block;
    width: auto;
    margin-top: 25px;
    padding: 10px 24px;
    background: #fa5e21;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
}

.buttons .btn:hover {
    background: #d94d02;
}