.cvc-appointments-container,
.cvc-transactions-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    direction: rtl;
    font-family: 'Tahoma', sans-serif;
}

.cvc-widget-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cvc-widget-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.cvc-btn.cvc-btn-new-appointment {
    background-color: #28a745; /* Green for new action */
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1;
}

.cvc-btn.cvc-btn-new-appointment:hover {
    background-color: #218838;
    color: #fff;
}

.cvc-btn-new-appointment i,
.cvc-btn-new-appointment svg {
    font-size: 1.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.cvc-ajax-load {
    padding: 20px;
    min-height: 100px;
}

.cvc-table {
    width: 100%;
    border-collapse: collapse;
}

.cvc-table th,
.cvc-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.cvc-table th {
    background: #fafafa;
    color: #555;
    font-weight: 600;
}

.cvc-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.cvc-status-pending {
    background: #fff3cd;
    color: #856404;
}

.cvc-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.cvc-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.cvc-status-completed {
    background: #cce5ff;
    color: #004085;
}

.cvc-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cvc-btn {
    padding: 8px 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
}
.cvc-btn:hover {
    background: #0069d9;
}
.cvc-btn-view {
    background: #17a2b8;
}
.cvc-btn-view:hover {
    background: #138496;
}

.cvc-btn-cancel {
    background: #dc3545;
}

.cvc-btn-cancel:hover {
    background: #c82333;
}

.cvc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.cvc-modal.open {
    display: flex;
}
.cvc-modal-dialog {
    width: 90%;
    max-width: 640px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.cvc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.cvc-modal-title {
    font-size: 16px;
    color: #333;
}
.cvc-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.cvc-modal-body {
    padding: 16px 20px;
}
.cvc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.cvc-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}
.cvc-detail-section {
    border-top: 1px dashed #eee;
    padding-top: 12px;
}
.cvc-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

@media screen and (max-width: 600px) {
    .cvc-table thead {
        display: none;
    }

    .cvc-table td {
        display: block;
        text-align: left;
        padding-left: 50%;
        position: relative;
    }

    .cvc-table td:before {
        content: attr(data-label);
        position: absolute;
        right: 15px;
        font-weight: bold;
    }

    .cvc-detail-grid {
        grid-template-columns: 1fr;
    }
}
