:root {
    --primary-button: #fcb900;
    --primary-hover: #ffefc2;
    --main-colour: #ff8b54;
    --header-colour: #000;
    --nav-colour: #fff;
    --secondary-button: #f5611a;
    --secondary-hover: #f1c0a9;
    --main-background: #fbf9f9;
    --section-background: #ffffff;
    --section-border: #b4b4b4;
    --main-border: #000;
    --main-shadow: #00000066;
    --main-highlight: #f5611a;
    --invalid-border: #dc3545;
    --hover-sidebar: #fff3cd;
}

h1 {
    font-family: 'DistantGalaxy', 'Times New Roman';
}

.page-background {
    background-color: var(--main-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar.navbar-color {
    background-color: var(--nav-colour);
}

.flex-reverse {
    display: flex;
    flex-wrap: wrap-reverse;
}

.btn-primary {
    border-radius: 0px 16px 0px 16px;
    box-shadow: 3px 3px 6px var(--main-shadow);
    transition: all 0.15s ease;
    border: 2px solid var(--main-border);
    font-family: 'Rubik';
    text-transform: uppercase;
    font-weight: normal;
    background-color: var(--primary-button);
    padding: 5px;
    height: 40px;
    --bs-btn-color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border: 2px solid var(--main-border);
    color: #000;
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--main-shadow);
}

.btn-admin {
    border-radius: 0px 16px 0px 16px;
    box-shadow: 3px 3px 6px var(--main-shadow);
    transition: all 0.15s ease;
    border: 2px solid var(--main-border);
    font-family: 'Rubik';
    text-transform: uppercase;
    font-weight: normal;
    background-color: var(--primary-button);
    padding: 5px;
    --bs-btn-color: #000;
}

.edgie-tile {
    display: flex;
    align-items: center;
}

.edgie-tile .btn {
    height: 250px;
    width: 100%;
}

.btn-admin:hover {
    background-color: var(--primary-hover) !important;
    border: 2px solid var(--main-border);
    color: #000;
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--main-shadow);
}

.edgie-tile-icon,
.edgie-tile-text {
    width: 150px;
    font-family: 'Rubik';
}

.edgie-nav-icon {
    flex-shrink: 0;
    display: flex;
    height: 50px;
    width: 50px;
    align-items: center;
}

.edgie-nav-icon img {
    width: 100%;
    height: auto;
}

.edgie-nav-text {
    color: black !important;
    line-height: 1.2;
    font-size: 15px;
}

.edgie-nav,
.edgie-nav-admin {
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.edgie-nav:hover,
.edgie-nav-admin:hover {
    opacity: 0.5;
}

.edgie-nav-admin a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edgie-icon {
    background-repeat: no-repeat;
    color: #fff;
    font-family: 'Rubik';
    text-transform: uppercase;
    display: inline-block;
    margin-right: 20px;
    width: 40px;
    height: 40px;
}

.edgie-icon.view {
    background-image: url(/assets/images/icon-view.svg);
}

.edgie-icon.edit {
    background-image: url(/assets/images/icon-edit.svg);
}

.edgie-icon.approve {
    background-image: url(/assets/images/icon-approve.svg);
}

.edgie-icon.deactivate {
    background-image: url(/assets/images/icon-deactivate.svg);
}

.edgie-icon.delete {
    background-image: url(/assets/images/icon-delete.svg);
}

.edgie-icon.report {
    background-image: url(/assets/images/icon-report.svg);
}

.form-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #ced4da;
    padding: 0.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.detail-colour {
    background-color: var(--header-colour) !important;
    color: #fff !important;
}

.fc-daygrid-event-dot {
    background-color: var(--main-highlight);
    border-color: var(--main-highlight);
}

.ui-widget-header,
.modal-header {
    background-color: var(--header-colour) !important;
    color: #fff;
    font-family: 'Rubik';
    text-transform: uppercase;
    font-weight: bold;
}

.menu-label {
    line-height: 1;
    font-size: 0.875rem;
    font-weight: 600;
}

.brand-link {
    margin-left: 0.5rem;
}

.nav-desktop {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-desktop .top-nav-link {
    display: flex;
    align-items: center;
    color: #000;
    background-color: transparent;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 8px 12px;
}

.nav-desktop .top-nav-link:hover {
    background-color: var(--hover-sidebar);
    color: #000;
}

.sidebar {
    background-color: var(--main-background);
    height: 100%;
}

.sidebar-main-menu {
    background-color: var(--section-background);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    overflow: hidden;
    border: 2px solid var(--section-border);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}


.sidebar-secondary-menu {
    background-color: var(--section-background);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-main-menu .list-group-item.sidebar-active {
    background-color: var(--hover-sidebar);
    color: #000 !important;
    font-weight: bold;
}

.mobile-menu {
    background-color: var(--section-background);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile-menu .list-group-item {
    border: none;
}

.dashboard-section {
    background-color: var(--section-background);
    border: 2px solid var(--section-border);
    border-radius: 10px;
    padding: 10px;
}

.dashboard-section-inner {
    padding: 0 1.5rem;
}

.dashboard-section-inner--spaced {
    padding: 0 1.5rem;
    margin-top: 1rem;
}

.dashboard-section-inner--flush {
    padding: 0;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.alert-info {
    background-color: #ccf0f0;
    color: #000000;
    border-color: var(--main-border);
}

.fc-daygrid-day-number,
.fc-col-header-cell a {
    color: #000 !important;
}

.fc-event-title,
.fc-event-time {
    color: #000 !important;
}

.fc {
    color: #000;
}

.fc-daygrid-day-frame {
    background-color: #ffffffcc;
}

.fc-theme-standard th,
.fc-theme-standard th a {
    background-color: var(--header-colour);
    color: #fff !important;
    text-transform: uppercase;
    font-family: 'Rubik';
    text-decoration: none;
}

.fc-theme-standard td,
.fc-theme-standard td a {
    background-color: var(--section-background);
    color: #000;
    font-weight: bold;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(67, 67, 67, 0.947);
}

.fc .fc-button-primary {
    font-family: 'Rubik';
    text-transform: uppercase;
    background-color: black;
}

.fc-v-event .fc-event-main {
    color: var(--main-colour);
}

.fc-timegrid-event .fc-event-time {
    font-size: 15px;
}

.fc-v-event .fc-event-title {
    font-size: 15px;
}

.fc-toolbar-title {
    background-image: url(/assets/images/cloud-bg-long.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    height: 120px;
    width: 300px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'DistantGalaxy';
}

.btn-secondary {
    border-radius: 0px 16px 0px 16px;
    box-shadow: 3px 3px 6px var(--main-shadow);
    transition: all 0.15s ease;
    border: 2px solid var(--main-border);
    font-family: 'Rubik';
    text-transform: uppercase;
    font-weight: normal;
    background-color: var(--secondary-button);
    padding: 5px;
    height: 40px;
    color: black;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover) !important;
    border: 2px solid var(--main-border);
    color: #000;
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--main-shadow);
}

.btn-icon {
    height: 28px;
    width: auto;
    max-height: 100%;
}

.fc-addShiftButton-button {
    border-radius: 0px 16px 0px 16px;
    box-shadow: 3px 3px 6px var(--main-shadow);
    background-image: url(/assets/images/icon-shift.svg);
    background-repeat: no-repeat;
    transition: all 0.15s ease;
    border: 2px solid var(--main-border);
    font-family: 'Rubik';
    text-transform: uppercase;
    font-weight: normal;
    background-color: var(--primary-button);
    padding-left: 40px;
    height: 40px;
}

.fc-addShiftButton-button:hover {
    background-color: var(--primary-hover);
    border: 2px solid var(--main-border);
    color: #000;
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--main-shadow);
}

.ui-dialog-titlebar-close {
    background: url('https://code.jquery.com/ui/1.12.1/themes/base/images/ui-icons_777777_256x240.png') -96px -128px no-repeat !important;
    background-size: 256px 240px !important;
    width: 22px !important;
    height: 20px !important;
    border: none !important;
}

.modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 250px);
    padding: 1rem;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    flex-shrink: 0;
}

.expense-description.is-invalid,
.expense-amount.is-invalid {
    border-color: var(--invalid-border);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.expense-description.is-invalid:focus,
.expense-amount.is-invalid:focus {
    border-color: var(--invalid-border);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

#startLocation.is-invalid,
#endLocation.is-invalid,
#distance.is-invalid,
#vehicleRegistration.is-invalid {
    border-color: var(--invalid-border);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

#startLocation.is-invalid:focus,
#endLocation.is-invalid:focus,
#distance.is-invalid:focus,
#vehicleRegistration.is-invalid:focus {
    border-color: var(--invalid-border);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.edgie-upload,
.edgie-uploaded {
    background-color: #fefefe;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-family: 'Rubik';
    border-color: var(--section-border);
}

.maintenance-body {
    font-family: Arial, sans-serif;
    background-color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.maintenance-container {
    text-align: center;
    color: #fff;
    margin: auto;
    max-width: 600px;
}

.maintenance-header {
    font-size: 3em;
    color: #fff;
}

.maintenance-paragraph {
    font-size: 1.5em;
    color: #ccc;
}

.form-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.form-control,
.form-select {
    border: 1px solid #ced4da;
    padding: 0.5rem;
}

.form-check {
    margin: 4px 0;
    position: relative;
}

.form-check-label {
    display: block;
    margin-left: 5px;
}

.checkbox-group {
    padding: 15px;
    border-radius: 4px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.bg-danger,
.btn-danger {
    background-color: #f26338 !important;
    border-color: #f26338;
}

.color-danger,
.btn-outline-danger {
    color: #f26338 !important;
}

.profile-section-1 {
    background-color: #fefefe;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid var(--section-border);
}

.profile-section-2 {
    background-color: #12cdc1;
    color: black;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid var(--section-border);
}

.profile-section-3 {
    background-color: #fefefe;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid var(--section-border);
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.profile-section-2 .section-heading {
    color: black;
}

.profile-section-3 .section-heading {
    color: white;
}

.services-list,
.languages-list,
.cultural-list,
.interests-list {
    list-style-type: none;
    padding-left: 0;
}

.services-list li,
.languages-list li,
.cultural-list li,
.interests-list li {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 15px;
    display: inline-block;
    margin-right: 5px;
}

.support-instructions {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.medications-list {
    margin-bottom: 0;
}

/* Hourly Availability Styles */
#availability_table {
    font-size: 0.8rem;
    max-width: 750px;
    table-layout: fixed;
    width: 100%;
}

#availability_table th {
    text-align: center;
    font-weight: 600;
    background-color: #CB156C;
    color: white;
    padding: 4px;
    max-width: 70px;
}

.availability-cell {
    width: 60px;
    height: 30px;
    min-width: 60px;
    min-height: 30px;
    max-width: 70px;
    max-height: 30px;
    text-align: center;
    padding: 2px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.time-label {
    font-weight: 600;
    background-color: #f8f9fa;
    text-align: center;
    width: 60px;
    max-width: 70px;
    padding: 4px;
}

.time-label.night-hours {
    background-color: #000000;
    color: white;
}

.time-label.day-hours {
    background-color: #ffc107;
    color: black;
}

.time-label.evening-hours {
    background-color: #1e3a8a;
    color: white;
}

.period-label {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    width: 40px;
    max-width: 40px;
    padding: 8px 4px;
    line-height: 1.2;
    font-size: 1.05rem;
}

.period-label.night-hours {
    background-color: #000000;
    color: white;
}

.period-label.day-hours {
    background-color: #ffc107;
    color: black;
}

.period-label.evening-hours {
    background-color: #1e3a8a;
    color: white;
}

.period-label .time-range {
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 4px;
}

.availability-cell.night-hours {
    background-color: #000000;
    color: white;
}

.availability-cell.day-hours {
    background-color: #ffc107;
    color: black;
}

.availability-cell.evening-hours {
    background-color: #1e3a8a;
    color: white;
}

.availability-cell.filled {
    background-color: #28a745 !important;
    color: white !important;
}

.rate-display {
    font-size: 0.7rem;
    font-weight: 600;
    pointer-events: none;
}

/* Connect Button Styles */
.btn-connect {
    background-color: #CB156C !important;
    border: 2px solid #2b0023 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.btn-connect:hover {
    background-color: #a01158 !important;
    border-color: #2b0023 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.btn-connect:focus {
    background-color: #CB156C !important;
    border-color: #2b0023 !important;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(203, 21, 108, 0.3) !important;
}

.btn-connect .btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.btn-connect:disabled,
.btn-connect.disabled {
    background-color: #888888 !important;
    border-color: #666666 !important;
    color: #dddddd !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-connect:disabled .btn-icon,
.btn-connect.disabled .btn-icon {
    filter: brightness(0) invert(0.8);
}

/* Connect Modal Styles */
.connect-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.connect-modal-overlay.show {
    display: flex;
}

.connect-modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.connect-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.connect-modal-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.connect-modal-body {
    text-align: center;
    margin-bottom: 25px;
}

.connect-modal-body p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.connect-modal-body .user-name {
    font-weight: bold;
    color: #333;
}

.connect-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.connect-modal-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.connect-modal-btn.cancel {
    background-color: #e0e0e0;
    color: #333;
}

.connect-modal-btn.cancel:hover {
    background-color: #d0d0d0;
}

.connect-modal-btn.confirm {
    background-color: #12cdc1;
    color: white;
}

.connect-modal-btn.confirm:hover {
    background-color: #0fb5aa;
}

.connect-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.connect-success {
    text-align: center;
}

.connect-success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.connect-success h4 {
    color: #28a745;
    margin-bottom: 15px;
}

.connect-success p {
    color: #666;
    margin-bottom: 20px;
}

.connect-success .connections-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: #12cdc1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.connect-success .connections-link:hover {
    background-color: #0fb5aa;
    color: white;
}


.directory-card {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-support-worker {
    background-color: #FABD03;
}

.card-participant {
    background-color: #12cdc1;
}

.card-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.card-action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-action-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.card-action-btn img {
    width: 32px;
    height: 32px;
}

.card-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #000;
    padding-right: 80px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.4;
}

.card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 60px;
    overflow: hidden;
}

.card-pill {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #000;
    white-space: nowrap;
}

.card-pill.more {
    background-color: rgba(0, 0, 0, 0.2);
    font-style: italic;
}

.card-pill.profile-type {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.card-location {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.card-location i {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Connect Modal Styles */
.connect-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.connect-modal-overlay.show {
    display: flex;
}

.connect-modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.connect-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.connect-modal-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.connect-modal-body {
    text-align: center;
    margin-bottom: 25px;
}

.connect-modal-body p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.connect-modal-body .user-name {
    font-weight: bold;
    color: #333;
}

.connect-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.connect-modal-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.connect-modal-btn.cancel {
    background-color: #e0e0e0;
    color: #333;
}

.connect-modal-btn.cancel:hover {
    background-color: #d0d0d0;
}

.connect-modal-btn.confirm {
    background-color: #12cdc1;
    color: white;
}

.connect-modal-btn.confirm:hover {
    background-color: #0fb5aa;
}

.connect-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.card-action-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.card-action-btn.connected {
    opacity: 0.5;
}

.card-action-btn.connected img {
    filter: grayscale(100%);
}

.connect-success {
    text-align: center;
}

.connect-success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.connect-success h4 {
    color: #28a745;
    margin-bottom: 15px;
}

.connect-success p {
    color: #666;
    margin-bottom: 20px;
}

.connect-success .connections-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: #12cdc1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.connect-success .connections-link:hover {
    background-color: #0fb5aa;
    color: white;
}

.welcome-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.welcome-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/* Filter Panel Styles */
.directory-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 60px;
}

.filter-panel {
    width: 340px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(18, 205, 193, 0.3);
}

.filter-panel-header h5 {
    margin: 0;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-panel-header h5 i {
    color: #12cdc1;
}

.filter-clear-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-clear-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--invalid-border);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-of-type {
    margin-bottom: 24px;
}

.availability-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.availability-row .form-select-sm {
    padding: 4px 6px !important;
    font-size: 0.9rem;
}

.remove-availability {
    color: var(--invalid-border);
    font-weight: 700;
    text-decoration: none;
}

.remove-availability:hover {
    color: #b02a37;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.9rem;
}

.filter-group .form-control,
.filter-group .form-select {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
    border-color: #12cdc1;
    box-shadow: 0 0 0 3px rgba(18, 205, 193, 0.15);
}

.filter-apply-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #12cdc1 0%, #0fb5aa 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(18, 205, 193, 0.3);
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 205, 193, 0.4);
    background: linear-gradient(135deg, #14e0d3 0%, #12cdc1 100%);
}

.filter-apply-btn i {
    margin-right: 8px;
}

.directory-results {
    flex: 1;
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    background: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    color: #6c757d;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.results-count strong {
    color: #1a1a2e;
}

/* Select2 styling for filters */
.filter-panel .select2-container {
    width: 100% !important;
}

.filter-panel .select2-container--default .select2-selection--multiple {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    min-height: 42px;
    background-color: #fff;
    padding: 4px 8px;
}

.filter-panel .select2-container--default .select2-selection--multiple:focus-within {
    border-color: #12cdc1;
    box-shadow: 0 0 0 3px rgba(18, 205, 193, 0.15);
}

.filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #12cdc1;
    border: none;
    color: white;
    border-radius: 6px;
    padding: 5px 10px 5px 24px;
    margin: 3px 4px 3px 0;
    position: relative;
    font-size: 0.9rem;
}

.filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 0;
    padding-right: 0;
}

.filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: bold;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    border-radius: 0;
}

.filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.filter-panel .select2-container--default .select2-selection--multiple .select2-search--inline {
    margin-top: 3px;
}

.filter-panel .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0;
}

/* Active filters indicator */
.active-filters-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #12cdc1;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 8px;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    padding-top: 25px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    background: #f8f9fa;
    border-color: #12cdc1;
    color: #12cdc1;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #12cdc1 0%, #0fb5aa 100%);
    border-color: #12cdc1;
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

.filter-toggle-mobile {
    display: none;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.filter-toggle-mobile:hover {
    background: #e9ecef;
}

.filter-toggle-mobile i {
    margin-right: 8px;
}

.navbar-brand .edgie-dex-logo {
    height: 133px;
    width: auto;
}

.nav-tabs .nav-link {
    background-color: #eee;
    color: #000;
}

.nav-tabs .nav-link.active {
    background-color: var(--header-colour);
    color: #fff;
}

.table-thead {
    background-color: var(--header-colour) !important;
    color: #fff !important;
}

.table-color th {
    background-color: var(--header-colour) !important;
    color: #fff !important;
}

/* Mobile view */

@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .three-column-layout {
        grid-template-columns: 1fr;
    }

    .brand-link {
        margin-left: 0;
    }
}

@media (max-height: 800px) {
    .modal-dialog-scrollable .modal-body {
        max-height: calc(100vh - 200px);
    }
}

@media (max-height: 600px) {
    .modal-dialog-scrollable .modal-body {
        max-height: calc(100vh - 150px);
    }
}

@media (max-width: 991px) {
    .directory-layout {
        flex-direction: column;
        padding-bottom: 40px;
    }

    .filter-panel {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .filter-toggle-mobile {
        display: block;
    }

    .filter-panel.collapsed {
        display: none;
    }

    .filter-panel.collapsed+.filter-toggle-mobile {
        display: block;
    }
}

@media (max-width: 576px) {
    .directory-layout {
        padding-bottom: 30px;
    }

    .filter-panel {
        padding: 16px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .results-count {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}