.parent-container {
    position: relative; /* Ensures the loader is positioned relative to this container */
    display: inline-block;
}

.element-to-blur {
    filter: none; /* Initially no blur */
    transition: filter 0.3s ease; /* Smooth transition when applying blur */
    pointer-events: auto;
}

.control-c-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 10;
    pointer-events: none; /* Ensure loader doesn't block user interactions */
}

/* Apply blur when the loader is visible */
.parent-container.loading .element-to-blur {
    filter: blur(5px); /* Adjust the amount of blur */
    pointer-events: none;
}

.control-c-loader {
    animation: rotate 1s infinite;
    height: 50px;
    width: 50px;
}

.control-c-loader:before,
.control-c-loader:after {
    border-radius: 50%;
    content: '';
    display: block;
    height: 20px;
    width: 20px;
}

.control-c-loader:before {
    animation: ball1 1s infinite;
    background-color: #cb2025;
    box-shadow: 30px 0 0 #f8b334;
    margin-bottom: 10px;
}

.control-c-loader:after {
    animation: ball2 1s infinite;
    background-color: #00a096;
    box-shadow: 30px 0 0 #97bf0d;
}

@keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg) scale(0.8);
        -moz-transform: rotate(0deg) scale(0.8);
    }
    50% {
        -webkit-transform: rotate(360deg) scale(1.2);
        -moz-transform: rotate(360deg) scale(1.2);
    }
    100% {
        -webkit-transform: rotate(720deg) scale(0.8);
        -moz-transform: rotate(720deg) scale(0.8);
    }
}

@keyframes ball1 {
    0% {
        box-shadow: 30px 0 0 #f8b334;
    }
    50% {
        box-shadow: 0 0 0 #f8b334;
        margin-bottom: 0;
        -webkit-transform: translate(15px, 15px);
        -moz-transform: translate(15px, 15px);
    }
    100% {
        box-shadow: 30px 0 0 #f8b334;
        margin-bottom: 10px;
    }
}

@keyframes ball2 {
    0% {
        box-shadow: 30px 0 0 #97bf0d;
    }
    50% {
        box-shadow: 0 0 0 #97bf0d;
        margin-top: -20px;
        -webkit-transform: translate(15px, 15px);
        -moz-transform: translate(15px, 15px);
    }
    100% {
        box-shadow: 30px 0 0 #97bf0d;
        margin-top: 0;
    }
}

#switchMenu {
    width: calc(100% + 100px);
}

.controlc-hidden {
    display: none;
}

.controlc-logo {
    width: 150px;
    height: 30px;
}

.controlc-new-org-tbl {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 280px;
}

.controlc-err-org-tbl {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 280px;
}

.controlc-no-switch {
    margin-top: -80px;
}

.controlc-new-org-count-container {
    height: 55px;
}

.controlc-new-org-count-text {
    margin-top: 10px;
}

.controlc-download-progress-bar {
    height: 7px;
}

.controlc-paycard {
    background-image: url('/images/application/img-pay-card-bg.png');
}

.controlc-paycard-img {
    width: 64px;
    height: 64px;
}

.controlc-paycard-img-amex {
    height: 29px;
    width: 30px;
}

.controlc-plan-bronze {
    color: #F4511E;
}

.controlc-plan-silver {
    color: #9E9E9E;
}

.controlc-plan-gold {
    color: #FFB300;
}

.controlc-plan-platinum {
    color: #2196F3;
}

.controlc-plan-oneoff {
    color: #212121;
}

.controlc-logo-size {
    width: 150px;
    height: 50px;
}

.controlc-summary-table {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 280px;
}

.controlc-error-summary-table {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 305px;
}

.controlc-new-summary-org-container {
    height: 65px;
}

.controlc-new-summary-org-text-container {
    margin-top: 10px;
    height: 65px;
}

.controlc-mfa-img {
    width: 256px;
    height: 256px;
}

.controlc-bank-account-container {
    padding-left: 20px;
}

.controlc-email-settings-container {
    padding-left: 20px;
}

.controlc-toast-zindex {
    z-index: 99999
}

.controlc-organisation-img {
    width: 128px;
    height: 128px;
}

.controlc-companion-img {
    width: 128px;
    height: 128px;
}

.controlc-scanner-text-indentation {
    margin-left: 30px;
    padding-left: 15px;
}

.controlc-reconnect-img {
    width: 128px;
    height: 128px;
}

.controlc-not-available {
    font-style: italic;
}

.controlc-xero-connected {
    width: 150px;
    height: 70px;
}

.controlc-radar-container {
    width: 100%;
    height: 100%;
    min-height: 480px;
    max-height: 900px;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.controlc-radar-container > div {
    width: 100%;
    height: 100%;
}

.controlc-event-day {
    background-color: #06b3e8 !important; /* Bootstrap success green */
    color: white !important;
    font-weight: bold;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
    opacity: 0.5;
}

.datepicker-cell.controlc-event-day.selected {
    background-color: #06b3e8 !important; /* Bootstrap success green */
    color: white !important;
    font-weight: bold;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
    opacity: 1;
}

.controlc-event-day:hover {
    background-color: #06b3e8 !important; /* Darker shade of success */
    color: white !important;
    transform: scale(1.1);
    cursor: pointer;
}

.controlc-disconnect-no-hover-style,
.controlc-disconnect-no-hover-style:hover,
.controlc-disconnect-no-hover-style:focus,
.controlc-disconnect-no-hover-style:active {
    background-color: #dc3545 !important; /* same as .btn-danger */
    color: white !important;
    text-decoration: none !important;
    cursor: default !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

.controlc-new-organisation-hover-text-style {
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* optional: horizontal centering */
    font-size: 0.9rem; /* smaller font size */
    height: 100%; /* needed if parent has a fixed height */
}

.datepicker-cell.today {
    background-color: #e2e6ea !important;
    color: black !important;
}

.datepicker-cell.selected {
    background-color: #e2e6ea !important;
    color: black !important;
    font-weight: 600;
}

.controlc-visible {
    display: block; /* or flex, grid, inline, etc. depending on context */
}

.controlc-underline {
    text-decoration: underline !important;
}

.apexcharts-legend {
    display: flex !important;
    justify-content: center; /* ⬅️ This will center horizontally */
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.apexcharts-legend-series {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.apexcharts-legend-series:hover {
    background-color: #e5e7eb;
}

.apexcharts-legend-text {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.controlc-select-site-card {
    max-width: 690px !important;
}

.controlc-select-site-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 350px;
    height: 120px;
}

.controlc-btn-square {
    border-radius: 6px !important;
}

.controlc-btn-primary {
}

.btn.btn-icon.controlc-profile-btn-primary {
    background-color: #0D6EFD !important;
    border-color: #0D6EFD !important;
    color: white !important;
}

.controlc-new-org-btn-primary {
    background-color: #06b3e8 !important;
    border-color: #06b3e8 !important;
    opacity: 0.6 !important;
}

.controlc-color-secondary {
    color: #06b3e8 !important;
}

.controlc-new-org-btn-primary:hover,
.controlc-new-org-btn-primary:focus {
    background-color: #06b3e8 !important; /* darker shade */
    border-color: #06b3e8 !important;
    opacity: 1 !important;
}

/* default */
.apexcharts-series path,
.apexcharts-series rect,
.apexcharts-series polygon {
    fill-opacity: 0.5;
    transition: fill-opacity 0.2s ease;
}

/* on hover, only the hovered series goes to 1 */
.apexcharts-series:hover path,
.apexcharts-series:hover rect,
.apexcharts-series:hover polygon {
    fill-opacity: 1;
}

.controlc-services-image-container {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px; /* Consistent max width */
}

.controlc-services-image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.controlc-services-image-container img {
    display: block;
    width: 100%;
    height: 250px; /* Fixed height for alignment */
    object-fit: contain; /* Shows full image without cropping */
    object-position: center; /* Centers the image */
    background-color: #f8f9fa; /* Light background for padding areas */
    transition: all 0.3s ease;
}

.controlc-services-image-container:hover img {
    transform: scale(1.05);
}

.controlc-services-image-text {
    padding: 16px 20px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
    background: white;
    min-height: 80px; /* Consistent text area height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row; /* Changed from column to row */
    gap: 8px; /* Space between text and icon */
}

.controlc-services-image-container:hover .controlc-services-image-text {
    color: #e53e3e;
}

.controlc-services-image-container:active {
    transform: translateY(-6px) scale(1.01);
}

.controlc-services-image-container:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.controlc-services-row > [class*="col-"] {
    display: flex;
    align-items: stretch;
}

.controlc-services-row > [class*="col-"] > * {
    width: 100%;
}

.controlc-color-primary {
    color: #DA2B31 !important;
}

/* Loading Animation */
.loader-container {
    margin: 30px 0 40px;
}

.modern-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    border-top: 3px solid #667eea;
    animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #764ba2;
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #667eea;
    animation-duration: 1s;
}

/* Dark theme loader adjustments */
@media (prefers-color-scheme: dark) {
    .loader-ring {
        border-color: rgba(139, 92, 246, 0.15);
        border-top-color: #8b5cf6;
    }

    .loader-ring:nth-child(2) {
        border-top-color: #a855f7;
    }

    .loader-ring:nth-child(3) {
        border-top-color: #8b5cf6;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Status Messages */
.status-content {
    margin: 30px 0;
}

.status-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #0ea5e9;
}

.status-message p {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.6;
}

.status-message p:last-child {
    margin-bottom: 0;
}

.success-note {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

/* Dark theme status messages */
@media (prefers-color-scheme: dark) {
    .status-message {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-left-color: #3b82f6;
    }

    .status-message p {
        color: #e2e8f0;
    }

    .success-note {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border-left-color: #10b981;
    }

    .success-note p {
        color: #d1fae5;
    }
}

.controlc-badge {
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    float: right;
    background: #0D6EFD;
}

.controlc-auth-header {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: clamp(3rem, 6vw, 8rem);
    font-weight: bold;
    color: #5c5a5a;
    margin: 0;
    line-height: 1;
}

.controlc-auth-sub-header {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: normal;
    color: #DA2B31;
    margin: 0;
    line-height: 1;
}

@supports (font-size: clamp(40px, 2.5vw + 12px, 64px)) {
    .controlc-auth-header {
        font-size: clamp(40px, 2.5vw + 12px, 64px);
    }
}

.controlc-trademark {
    height: 40px;
    width: 190px;
}

.controlc-permission-list,
.controlc-permission-list ul {
    list-style-type: none; /* no bullets */
    margin: 0;
    padding-left: 1.25rem; /* indent children nicely */
}

.controlc-permission-item {
    margin-bottom: 0.25rem; /* space between rows */
}

.form-check-input:indeterminate {
    background-color: #0d6efd; /* Bootstrap primary color */
    border-color: #0d6efd;
    box-shadow: none;
}

/* White dash inside */
.form-check-input:indeterminate::before {
    content: "";
    display: block;
    width: 0.6em;
    height: 2px;
    background-color: #fff;
    margin: auto;
    position: relative;
    top: 0.35em;
}

.pending-change {
    background-color: rgba(255, 193, 7, 0.1);
}

.auth-dropdown.border-warning {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.controlc-card-header {
    height: 550px;
}

.controlc-card {
    height: 550px;
}

.controlc-card-body {
    height: calc(100% - 56px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.controlc-table-section {
    height: 350px;
    display: flex;
    flex-direction: column;
}

.controlc-table-dashboard-status-cell {
    width: 16.666%;
}

.controlc-table-dashboard-progress-cell {
    width: 16.666%;
}

.controlc-table-dashboard-repair-cell {
    width: 130px;
}

.controlc-org-col-name {
    width: 50%;
}

.controlc-org-col-provider {
    width: 16.666%;
}

.controlc-org-row {
    cursor: pointer;
}

.controlc-org-row:hover {
    background-color: rgba(6, 179, 232, 0.06);
}

.controlc-org-row:focus,
.controlc-org-row:focus-within {
    outline: 2px solid rgba(6, 179, 232, 0.35);
    outline-offset: -2px;
}

.controlc-org-row.controlc-org-row-selected {
    background-color: rgba(6, 179, 232, 0.12);
    box-shadow: inset 3px 0 0 #06b3e8;
}

.controlc-table-section-header {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #e9ecef;
}

.controlc-table-container-grouped {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.controlc-table-scroll {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.controlc-table-scroll::-webkit-scrollbar {
    width: 8px;
}

.controlc-table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.controlc-table-scroll::-webkit-scrollbar-thumb {
    background-color: #06b3e8 !important;
    border-radius: 10px;
}

.controlc-table {
    margin: 0;
    table-layout: fixed;
    width: 100%;
}

.controlc-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.controlc-table thead th {
    padding: 0.5rem;
}

.controlc-table td {
    padding: 0.5rem;
}

.controlc-name-cell {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .controlc-table-section {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .controlc-table-section {
        min-height: 300px;
    }

    .controlc-chart-container {
        min-height: 400px;
    }

    body {
        padding: 1rem;
    }
}

.controlc-stats-footer {
    flex-shrink: 0;
    padding: 1rem;
    min-height: 120px;
}

.controlc-stat-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.controlc-stat-card h4 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.controlc-stat-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

.controlc-roles-card-header {
    height: 250px;
}


.controlc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.controlc-modal-content {
    background-color: var(--bs-body-bg);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.controlc-small-text {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.controlc-transfer-box {
    max-height: 400px;
    overflow-y: auto;
}

.list-group-item.active {
    background-color: #06b3e8 !important; /* your brand color */
    border-color: #06b3e8 !important;
}

.controlc-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #06b3e8;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.controlc-success-check {
    font-size: 64px;
    color: #4CAF50;
    animation: popIn 0.4s ease-in-out;
}

.controlc-error-cross {
    font-size: 64px;
    color: #f44336;
    animation: popIn 0.4s ease-in-out;
}

.controlc-missing-check {
    border: 2px solid red;
}

.controlc-question {
    font-size: 64px;
    color: #f4ce15;
    animation: popIn 0.4s ease-in-out;
}

.controlc-cursor {
    cursor: pointer;
}

/* Prevent icon + arrow from shrinking */
.controlc-no-shrink {
    flex-shrink: 0;
}

/* Allow text block to shrink, and scale text down if needed */
.controlc-profile-text {
    flex: 1 1 auto;
    min-width: 0; /* IMPORTANT: allows shrinking */
}
