/* Bookit Appointments Styles - Dark Theme with Approve Functionality */

/* Container */


/* Title */
.my-bookit-title {
    margin-top: 0;
    color: #ffffff;
}

/* Count Info */
.my-bookit-count {
    color: #b0b0b0;
    margin-bottom: 0px;
}

/* Error Message */
.my-bookit-error {
    padding: 15px;
    background: #2d1f1f;
    border-left: 4px solid #f44336;
    color: #ff6b6b;
    margin: 10px 0;
    border-radius: 4px;
}

/* Empty State */
.my-bookit-empty {
    padding: 15px;
    background: #2d2a1f;
    border-left: 4px solid #ffc107;
    color: #ffd54f;
    margin: 10px 0;
    border-radius: 4px;
}

/* Mobile Card View */
.my-bookit-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card - Dark Theme */
.my-bookit-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #3d3d3d;
}

    .my-bookit-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
        background: #2f2f2f;
    }


/* Card Content */
.my-bookit-card-content {
    padding-left: 0;
}

/* Card Top Line - Improved Mobile Layout */
.my-bookit-card-top {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    margin-bottom: 14px;
    align-items: center;
}

.my-bookit-card-id {
    font-weight: bold;
    color: rgba(3, 210, 202, 1);
    font-size: 15px;
}

.my-bookit-card-date {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.my-bookit-card-time {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.my-bookit-card-customer {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    grid-column: 1 / -1;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Bottom Line */
.my-bookit-card-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 0;
}

.my-bookit-card-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 0;
    justify-content: flex-end;
    width: 100%;
}

.my-bookit-card-service {
    color: #9e9e9e;
    font-weight: 500;
    font-size: 14px;
}

.my-bookit-card-staff {
    color: #9e9e9e;
    font-size: 14px;
}

.my-bookit-card-my {
    color: #efefef;
    font-size: 16px;
    margin-right: 15px;
}

.my-bookit-card-price {
    color: rgba(3, 210, 202, 1);
    font-weight: 700;
    font-size: 15px;
}

.my-bookit-card-divider {
    color: #555;
    font-weight: bold;
}

/* Status Pill */
.my-bookit-card-status-text {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background:#555;
    min-width:30px;
}

    .my-bookit-card-status-text.hours {
        text-align: end;
        font-size: 16px;
    }

    /* Status colors for approved */
    .my-bookit-status-approved .my-bookit-card-status-text {
        background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    }

    .my-bookit-status-approved .my-bookit-card {
        border-left: 4px solid #4caf50;
    }
    /* Status colors for pending */
    .my-bookit-status-pending .my-bookit-card-status-text {
        background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    }

    .my-bookit-status-pending .my-bookit-card {
        border-left: 4px solid #ff9800;
    }
    /* Status colors for cancelled */
    .my-bookit-status-cancelled .my-bookit-card-status-text {
        background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    }

    .my-bookit-status-cancelled .my-bookit-card {
        border-left: 4px solid #f44336;
    }
    /* Status colors for completed */
    .my-bookit-status-completed .my-bookit-card-status-text {
        background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    }

    .my-bookit-status-completed .my-bookit-card {
        border-left: 4px solid #2196f3;
    }
    /* Default status */
    .my-bookit-status-default .my-bookit-card-status-text {
        background: linear-gradient(135deg, #999 0%, #777 100%);
    }

    .my-bookit-status-default .my-bookit-card {
        border-left: 4px solid #999;
    }
    /* Contact Info */
    .my-bookit-card-contact {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #3d3d3d;
    }

    .my-bookit-card-contact-link {
        color: rgba(3, 210, 202, 1);
        text-decoration: none;
        font-size: 13px;
        transition: color 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        word-break: break-all;
    }

        .my-bookit-card-contact-link:hover {
            color: rgba(3, 210, 202, 1);
            text-decoration: underline;
        }
    /* Statistics Section */
    .my-bookit-statistics {
        margin-top: 30px;
        padding: 20px;
        background: #2d2d2d;
        border-radius: 8px;
        border: 1px solid #3d3d3d;
    }

    .my-bookit-statistics-title {
        margin-top: 0;
        color: #ffffff;
    }
    /* Statistics Grid */
    .my-bookit-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .my-bookit-stat-item {
        background: #1a1a1a;
        padding: 15px;
        border-radius: 6px;
        color: #e0e0e0;
        border: 1px solid #3d3d3d;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .my-bookit-stat-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .my-bookit-stat-item strong {
            color: rgba(3, 210, 202, 1);
            display: block;
            margin-bottom: 4px;
        }


    /* ========================================== */
    /* APPROVE BUTTON & MODAL - DARK THEME */
    /* ========================================== */
    /* Action Buttons Container */
    .my-bookit-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #3d3d3d;
        width: 100%;
        justify-content: flex-end;
    }
    /* Approve Button */
    .my-bookit-btn {
        display: inline-block;
        padding: 6px 16px;
        background: #03d2ca;
        color: #000;
        border: none;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

        .my-bookit-btn:hover {
            background: #03d2ca;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(3, 210, 202, 0.6);
        }

        .my-bookit-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(3, 210, 202, 0.4);
        }

        .my-bookit-btn:disabled {
            background: rgba(3, 210, 202, 0.5);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            opacity: 0.6;
        }
    /* Modal */
    .my-bookit-modal {
        position: fixed;
        font-size: 16px;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
    }

    .my-bookit-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(4px);
    }

    .my-bookit-modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #2a2a2a;
        border: 1px solid #3d3d3d;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        max-width: 500px;
        width: 90%;
        animation: my-bookit-modal-slide-in 0.3s ease;
    }

    @keyframes my-bookit-modal-slide-in {
        from {
            opacity: 0;
            transform: translate(-50%, -48%);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    .my-bookit-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid #3d3d3d;
    }

        .my-bookit-modal-header h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
        }

    .my-bookit-modal-close {
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #9e9e9e;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

        .my-bookit-modal-close:hover {
            background: #3d3d3d;
            color: #ffffff;
        }

    .my-bookit-modal-body {
        padding: 24px;
    }

        .my-bookit-modal-body p {
            margin: 0 0 16px 0;
            color: #e0e0e0;
            line-height: 1.6;
        }

    .my-bookit-modal-details {
        background: #1a1a1a;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 14px;
        color: #b0b0b0;
        border: 1px solid #3d3d3d;
    }

        .my-bookit-modal-details strong {
            color: #64b5f6;
            margin-right: 8px;
        }
    /* Warning style for decline modal */
    .my-bookit-modal-warning {
        background: #2d2410;
        border: 1px solid #ff9800;
        color: #ffd54f;
    }

        .my-bookit-modal-warning strong {
            color: #ff9800;
        }
    /* Danger style for delete modal */
    .my-bookit-modal-danger {
        background: #2d1f1f;
        border: 1px solid #f44336;
        color: #ff6b6b;
    }

        .my-bookit-modal-danger strong {
            color: #f44336;
        }

    .my-bookit-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding: 16px 24px;
        border-top: 1px solid #3d3d3d;
    }

    .my-bookit-modal-btn {
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
    }

    .my-bookit-modal-btn-cancel {
        background: #3d3d3d;
        color: #e0e0e0;
    }

        .my-bookit-modal-btn-cancel:hover {
            background: #4a4a4a;
        }

    .my-bookit-modal-btn-confirm {
        background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    }

        .my-bookit-modal-btn-confirm:hover {
            background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
            box-shadow: 0 4px 12px rgba(76, 175, 80, 0.6);
        }

        .my-bookit-modal-btn-confirm:disabled {
            background: linear-gradient(135deg, #666 0%, #555 100%);
            cursor: not-allowed;
            box-shadow: none;
            opacity: 0.6;
        }
    /* Decline button in modal */
    .my-bookit-modal-btn-decline {
        background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
    }

        .my-bookit-modal-btn-decline:hover {
            background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
            box-shadow: 0 4px 12px rgba(255, 152, 0, 0.6);
        }

        .my-bookit-modal-btn-decline:disabled {
            background: linear-gradient(135deg, #666 0%, #555 100%);
            cursor: not-allowed;
            box-shadow: none;
            opacity: 0.6;
        }
    /* Delete button in modal */
    .my-bookit-modal-btn-delete {
        background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
    }

        .my-bookit-modal-btn-delete:hover {
            background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
            box-shadow: 0 4px 12px rgba(244, 67, 54, 0.6);
        }

        .my-bookit-modal-btn-delete:disabled {
            background: linear-gradient(135deg, #666 0%, #555 100%);
            cursor: not-allowed;
            box-shadow: none;
            opacity: 0.6;
        }
    /* ========================================== */
    /* RESPONSIVE DESIGN */
    /* ========================================== */

    @media screen and (max-width: 768px) {
        .my-bookit-card {
            padding: 16px;
        }

        .my-bookit-cards-wrapper {
            gap: 20px;
        }

        .my-bookit-stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .my-bookit-card-customer {
            font-size: 15px;
        }

        .my-bookit-modal-content {
            width: 95%;
        }

        .my-bookit-modal-header,
        .my-bookit-modal-body,
        .my-bookit-modal-footer {
            padding: 16px;
        }

            .my-bookit-modal-header h3 {
                font-size: 18px;
            }

        .my-bookit-notification {
            right: 10px;
            left: 10px;
            min-width: auto;
        }

        .my-bookit-card-actions {
            gap: 6px;
        }

        .my-bookit-approve-btn,
        .my-bookit-decline-btn,
        .my-bookit-delete-btn {
            display: block;
            width: 100%;
            padding: 10px 16px;
            font-size: 13px;
        }
    }

    @media screen and (max-width: 480px) {
        .my-bookit-card {
            padding: 14px;
        }

        .my-bookit-card-top {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .my-bookit-card-id {
            font-size: 14px;
        }

        .my-bookit-card-date,
        .my-bookit-card-time {
            font-size: 13px;
            text-align: left;
        }

        .my-bookit-card-customer {
            font-size: 15px;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #3d3d3d;
        }

        .my-bookit-card-bottom {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .my-bookit-card-service,
        .my-bookit-card-staff,
        .my-bookit-card-price {
            font-size: 13px;
        }

        .my-bookit-card-status-text {
            margin-left: 0;
            margin-top: 8px;
            font-size: 11px;
            padding: 5px 14px;
        }

        .my-bookit-card-divider {
            display: none;
        }

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

        .my-bookit-stat-item {
            padding: 12px;
        }

        .my-bookit-card-contact {
            gap: 10px;
        }

        .my-bookit-card-contact-link {
            font-size: 12px;
            max-width: 100%;
        }

        .my-bookit-modal-content {
            width: 96%;
        }

        .my-bookit-modal-header,
        .my-bookit-modal-body,
        .my-bookit-modal-footer {
            padding: 14px;
        }

            .my-bookit-modal-header h3 {
                font-size: 17px;
            }

            .my-bookit-modal-body p {
                font-size: 15px;
            }

        .my-bookit-modal-btn {
            padding: 9px 16px;
            font-size: 13px;
        }

        .my-bookit-notification {
            font-size: 13px;
            padding: 14px 18px;
            top: 10px;
        }

        .my-bookit-approve-btn,
        .my-bookit-decline-btn,
        .my-bookit-delete-btn {
            padding: 9px 14px;
            font-size: 12px;
        }
    }

    @media screen and (max-width: 360px) {
        .my-bookit-card {
            padding: 12px;
        }

        .my-bookit-title {
            font-size: 1.3em;
        }

        .my-bookit-card-customer {
            font-size: 14px;
        }

        .my-bookit-card-service,
        .my-bookit-card-staff,
        .my-bookit-card-price {
            font-size: 12px;
        }
    }
    /* ===== MyBookit Toggle (Dark) ===== */
    .my-bookit-toggle {
        display: inline-flex;
        gap: 10px;
        padding: 10px 0px;
    }

    .my-bookit-toggle__item {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .my-bookit-toggle__input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .my-bookit-toggle__pill {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        cursor: pointer;
        user-select: none;
        border-radius: 999px;
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(255,255,255,.10);
        font-size: 14px;
        line-height: 1;
        color: var(--ib-btn-default-text-color);
        transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
    }

        .my-bookit-toggle__pill:hover {
            background: rgba(255,255,255,.1);
            border-color: rgba(255,255,255,.2);
        }
    /* Checked state */
    .my-bookit-toggle__input:checked + .my-bookit-toggle__pill {
        background: var(--ib-primary-color);
        border-color: var(--ib-primary-color);
        color: var(--ib-btn-primary-text-color);
        box-shadow: 0 0 0 4px rgba(99,102,241,.14);
    }
    /* Keyboard accessibility */
    .my-bookit-toggle__input:focus-visible + .my-bookit-toggle__pill {
        outline: none;
        box-shadow: 0 0 0 4px var(--mybookit-ring);
    }
    /* Mobile */
    @media (max-width: 320px) {
        .my-bookit-toggle {
            width: 100%;
            flex-direction: column;
            align-items: stretch;
        }

        .my-bookit-toggle__pill {
            justify-content: center;
            width: 100%;
        }
    }
    /* Loading state (JS toggles .is-loading on #my-bookit-results) */
    .ib-result-list.is-loading {
        opacity: .65;
        filter: saturate(.8);
        pointer-events: none;
        position: relative;
        min-height: 60px;
    }

        .ib-result-list.is-loading::before {
            content: "";
            position: absolute;
            inset: 10px;
            border-radius: 12px;
            background: linear-gradient( 90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06) );
            background-size: 200% 100%;
            animation: mybookitShimmer 1.1s infinite;
        }

    @keyframes mybookitShimmer {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }
