/*
 * Basic styles for the Court Booking frontend.
 */

/* Form Improvements */
.cb-form-group {
    margin-bottom: 1.5rem;
}

.cb-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.cb-form-group input,
.cb-form-group select,
.cb-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.cb-form-group input:focus,
.cb-form-group select:focus,
.cb-form-group textarea:focus {
    outline: none;
    border-color: #A22C2A;
    box-shadow: 0 0 0 3px rgba(162, 44, 42, 0.1);
}

.cb-form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Radio Button Groups - Improved UX */
.cb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.cb-radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0;
    background-color: #fff;
}

.cb-radio-group label:hover {
    border-color: #A22C2A;
    background-color: #fafafa;
}

.cb-radio-group input[type="radio"] {
    margin-right: 0.75rem;
    width: auto;
    padding: 0;
    margin-bottom: 0;
}

.cb-radio-group input[type="radio"]:checked + span,
.cb-radio-group label:has(input[type="radio"]:checked) {
    border-color: #A22C2A;
    background-color: rgba(162, 44, 42, 0.05);
    color: #A22C2A;
}

.cb-radio-group span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Dark Mode Form Styles */
.cb-theme-integration.cb-dark-mode .cb-form-group label {
    color: var(--cb-text);
}

.cb-theme-integration.cb-dark-mode .cb-form-group input,
.cb-theme-integration.cb-dark-mode .cb-form-group select,
.cb-theme-integration.cb-dark-mode .cb-form-group textarea {
    background-color: var(--cb-bg-light);
    border-color: var(--cb-border);
    color: var(--cb-text);
}

.cb-theme-integration.cb-dark-mode .cb-form-group input:focus,
.cb-theme-integration.cb-dark-mode .cb-form-group select:focus,
.cb-theme-integration.cb-dark-mode .cb-form-group textarea:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(162, 44, 42, 0.2);
}

.cb-theme-integration.cb-dark-mode .cb-radio-group label {
    background-color: var(--cb-bg-light);
    border-color: var(--cb-border);
    color: var(--cb-text);
}

.cb-theme-integration.cb-dark-mode .cb-radio-group label:hover {
    border-color: var(--cb-primary);
    background-color: rgba(162, 44, 42, 0.1);
}

.cb-theme-integration.cb-dark-mode .cb-radio-group label:has(input[type="radio"]:checked) {
    border-color: var(--cb-primary);
    background-color: rgba(162, 44, 42, 0.2);
    color: var(--cb-primary);
}

/* Multi-Step Form Styles */
.cb-form-progress {
    margin-bottom: 2rem;
}

.cb-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #A22C2A, #C74A48);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.cb-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.cb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e1e5e9;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.cb-step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.cb-step-active .cb-step-number {
    background-color: #A22C2A;
    color: white;
}

.cb-step-active .cb-step-label {
    color: #A22C2A;
    font-weight: 600;
}

.cb-step-completed .cb-step-number {
    background-color: #28a745;
    color: white;
}

.cb-step-completed .cb-step-label {
    color: #28a745;
}

/* Form Steps */
.cb-form-step {
    display: none;
}

.cb-form-step.cb-step-active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Form Navigation */
.cb-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.cb-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cb-btn-primary {
    background-color: #A22C2A;
    color: white;
}

.cb-btn-primary:hover {
    background-color: #8B2421;
    transform: translateY(-1px);
}

.cb-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.cb-btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.cb-btn-success {
    background-color: #28a745;
    color: white;
}

.cb-btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* Autocomplete Styles */
.cb-autocomplete-container {
    position: relative;
}

.cb-autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.cb-autocomplete-suggestions.show {
    display: block;
}

.cb-suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.cb-suggestion-item:hover {
    background-color: #f8f9fa;
}

.cb-suggestion-item:last-child {
    border-bottom: none;
}

.cb-suggestion-item.highlighted {
    background-color: #A22C2A;
    color: white;
}

/* Dark Mode Multi-Step Styles */
.cb-theme-integration.cb-dark-mode .cb-progress-bar {
    background-color: var(--cb-border);
}

.cb-theme-integration.cb-dark-mode .cb-step-number {
    background-color: var(--cb-border);
    color: var(--cb-text);
}

.cb-theme-integration.cb-dark-mode .cb-step-label {
    color: var(--cb-text);
}

.cb-theme-integration.cb-dark-mode .cb-form-navigation {
    border-top-color: var(--cb-border);
}

.cb-theme-integration.cb-dark-mode .cb-autocomplete-suggestions {
    background: var(--cb-bg-light);
    border-color: var(--cb-border);
}

.cb-theme-integration.cb-dark-mode .cb-suggestion-item {
    color: var(--cb-text);
    border-bottom-color: var(--cb-border);
}

.cb-theme-integration.cb-dark-mode .cb-suggestion-item:hover {
    background-color: rgba(162, 44, 42, 0.1);
}

.cb-theme-integration.cb-dark-mode .cb-suggestion-item.highlighted {
    background-color: var(--cb-primary);
    color: white;
}

#cb-time-slots {
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #f9f9f9;
}

/* Dark Mode Time Slots */
.cb-theme-integration.cb-dark-mode #cb-time-slots {
    border: 1px solid var(--cb-border);
    background-color: var(--cb-bg-light);
    color: var(--cb-text);
}

/* Light Mode Time Slots */
.cb-theme-integration.cb-light-mode #cb-time-slots {
    border: 1px solid var(--cb-border-light);
    background-color: #f9f9f9;
    color: var(--cb-secondary);
}

#cb-time-slots h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.cb-time-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between buttons */
}

.cb-time-slot {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease-in-out;
    color: #333;
}

/* Dark Mode Time Slots */
.cb-theme-integration.cb-dark-mode .cb-time-slot {
    border: 1px solid var(--cb-border);
    color: var(--cb-text);
    background-color: var(--cb-bg);
}

.cb-theme-integration.cb-dark-mode .cb-time-slot:hover {
    background-color: rgba(162, 44, 42, 0.2);
    border-color: var(--cb-primary);
}

/* Light Mode Time Slots */
.cb-theme-integration.cb-light-mode .cb-time-slot {
    border: 1px solid var(--cb-border-light);
    color: var(--cb-secondary);
    background-color: #fff;
}

.cb-theme-integration.cb-light-mode .cb-time-slot:hover {
    background-color: rgba(162, 44, 42, 0.1);
    border-color: var(--cb-primary);
}

/* Available Times Section - Dark Mode */
.cb-theme-integration.cb-dark-mode #cb-available-times h3,
.cb-theme-integration.cb-dark-mode #cb-available-times h4 {
    color: #FFFFFF !important;
}

.cb-theme-integration.cb-dark-mode .cb-time-slot-label {
    color: #FFFFFF !important;
}

.cb-theme-integration.cb-dark-mode .cb-time-slot-container {
    background-color: #000000 !important;
    border: 2px solid var(--cb-primary) !important;
    border-radius: 8px !important;
}

.cb-theme-integration.cb-dark-mode .cb-court-card {
    background-color: #FFFFFF !important;
    border: 1px solid var(--cb-primary) !important;
    color: var(--cb-primary) !important;
}

.cb-theme-integration.cb-dark-mode .cb-court-card:hover {
    border-color: var(--cb-primary) !important;
    background-color: var(--cb-primary) !important;
    color: #FFFFFF !important;
}

.cb-theme-integration.cb-dark-mode .cb-court-card .cb-court-name {
    color: var(--cb-primary) !important;
    font-weight: bold !important;
}

.cb-theme-integration.cb-dark-mode .cb-court-card:hover .cb-court-name {
    color: #FFFFFF !important;
}

/* Dark Mode Time Slots */
.cb-theme-integration.cb-dark-mode .cb-slots-container {
    background-color: #000000 !important;
    border: 2px solid var(--cb-primary) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
}

.cb-theme-integration.cb-dark-mode .cb-slot {
    background-color: #000000 !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: 6px !important;
    margin-bottom: 0.5rem !important;
}

.cb-theme-integration.cb-dark-mode .cb-slot-time {
    background-color: var(--cb-primary) !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.cb-theme-integration.cb-dark-mode .cb-courts-container {
    background-color: #000000 !important;
}

/* Available Times Section - Light Mode */
.cb-theme-integration.cb-light-mode #cb-available-times h3,
.cb-theme-integration.cb-light-mode #cb-available-times h4 {
    color: var(--cb-secondary) !important;
}

.cb-theme-integration.cb-light-mode .cb-time-slot-label {
    color: var(--cb-secondary) !important;
}

.cb-theme-integration.cb-light-mode .cb-court-card {
    background-color: #fff !important;
    border: 1px solid var(--cb-border-light) !important;
    color: var(--cb-secondary) !important;
}

.cb-theme-integration.cb-light-mode .cb-court-card:hover {
    border-color: var(--cb-primary) !important;
}

.cb-time-slot.available {
    background-color: #d4edda; /* Greenish background */
    border-color: #c3e6cb;
    color: #155724;
}

.cb-time-slot.available:hover {
    background-color: #c3e6cb;
}

.cb-time-slot.booked {
    background-color: #f8d7da; /* Reddish/Greyish background */
    border-color: #f5c6cb;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Dark Mode Time Slot States */
.cb-theme-integration.cb-dark-mode .cb-time-slot.available {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.cb-theme-integration.cb-dark-mode .cb-time-slot.available:hover {
    background-color: rgba(76, 175, 80, 0.3);
}

.cb-theme-integration.cb-dark-mode .cb-time-slot.booked {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #f44336;
}

/* Light Mode Time Slot States */
.cb-theme-integration.cb-light-mode .cb-time-slot.available {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.cb-theme-integration.cb-light-mode .cb-time-slot.available:hover {
    background-color: #c3e6cb;
}

.cb-theme-integration.cb-light-mode .cb-time-slot.booked {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.cb-time-slot:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#cb-booking-form {
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #f9f9f9;
}

#cb-booking-form label {
    font-weight: bold;
}

#cb-booking-form input[type="text"],
#cb-booking-form input[type="email"],
#cb-booking-form input[type="date"],
#cb-booking-form input[type="time"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Include padding in width */
}

#cb-booking-form input[type="submit"] {
    background-color: #0073aa; /* WordPress primary blue */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#cb-booking-form input[type="submit"]:hover {
    background-color: #005177;
}

/* Basic styling for the datepicker container */
.ui-datepicker {
    background: #fff; /* White background */
    border: 1px solid #ccc; /* Light grey border */
    padding: 1em; /* Some padding */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Optional shadow */
}

/* Style for the datepicker calendar header */
.ui-datepicker-header {
    background: #eee; /* Light grey header */
    border: none; /* No border on header */
}

/* Style for the datepicker days of the week */
.ui-datepicker th {
    padding: .7em .3em; /* Adjust padding */
    text-align: center; /* Center day names */
}

/* Style for the datepicker days */
.ui-datepicker td {
    padding: 0; /* Remove padding from cell */
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: block; /* Make day link/span fill cell */
    padding: .5em; /* Add padding to day */
    text-align: center; /* Center day number */
    text-decoration: none; /* No underline */
}

/* Style for current day */
.ui-datepicker .ui-state-highlight {
    background: #d0e9c6; /* Highlight color */
    color: #333; /* Dark text color */
}

/* Style for selected day */
.ui-datepicker .ui-state-active {
    background: #0073aa; /* WordPress primary blue */
    color: white; /* White text color */
}

/* Style for hovered day */
.ui-datepicker td a:hover {
    background: #f0f0f0; /* Light grey background on hover */
}

/* Membership Form Styles */
.cb-membership-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cb-form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.cb-form-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.cb-form-row {
    margin-bottom: 15px;
}

.cb-form-group {
    margin-bottom: 15px;
}

.cb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.cb-form-group input[type="text"],
.cb-form-group input[type="email"],
.cb-form-group input[type="tel"],
.cb-form-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cb-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

.cb-radio-group {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 0;
}

.cb-radio-group input[type="radio"] {
    margin-right: 10px;
    margin-left: 0;
    flex-shrink: 0;
    width: auto;
    vertical-align: middle;
}

/* Membership Indicator Styles */
.cb-membership-indicator-modal {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 6px;
    background: #f8f9fa;
    border-left: 4px solid #A22C2A;
    font-size: 0.95rem;
}

.cb-membership-badge {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cb-membership-badge.cb-member {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.cb-membership-badge.cb-non-member {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.cb-membership-badge small {
    display: block;
    margin-top: 5px;
    font-weight: normal;
    font-size: 0.85rem;
}

.cb-membership-badge a {
    color: #A22C2A;
    text-decoration: underline;
}

.cb-payment-option-modal {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.cb-payment-option-modal label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.cb-payment-option-modal input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.cb-payment-option-modal small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-weight: normal;
}

.cb-signature-container {
    margin: 20px 0;
    text-align: center;
}

.cb-signature-container canvas {
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: crosshair;
    width: 100% !important;
    max-width: 600px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
}

.cb-signature-controls {
    margin-top: 10px;
}

.cb-form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cb-membership-status {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cb-membership-status p {
    margin-bottom: 10px;
}

.cb-membership-status .cb-btn {
    margin-top: 10px;
}

/* User Area Tabs Styles */
.cb-user-area-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin: 20px 0;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.cb-user-area-tabs .cb-tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.cb-user-area-tabs .cb-tab-btn:hover {
    background: #e9ecef;
}

.cb-user-area-tabs .cb-tab-btn.active {
    background: white;
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.cb-user-area-content {
    background: white;
    border-radius: 0 0 8px 8px;
    padding: 30px;
    min-height: 400px;
}

.cb-user-area-content .cb-tab-content {
    display: none;
}

.cb-user-area-content .cb-tab-content.active {
    display: block;
}

/* Profile Info Styles */
.cb-profile-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.cb-profile-info p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.cb-profile-info p:last-child {
    border-bottom: none;
}

/* Membership Table Styles */
.cb-membership-table {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cb-membership-table h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #A22C2A;
    font-size: 1.3rem;
    border-bottom: 2px solid #A22C2A;
    padding-bottom: 10px;
}

.cb-membership-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

.cb-membership-data-table tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.cb-membership-data-table tr:hover {
    background-color: #f8f9fa;
}

.cb-membership-data-table td {
    padding: 12px 15px;
    vertical-align: top;
}

.cb-membership-data-table td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    width: 35%;
    color: #333;
}

.cb-membership-data-table td:last-child {
    color: #555;
    word-break: break-word;
}

.cb-status-complete {
    display: inline-block;
    padding: 6px 12px;
    background: #d4edda;
    color: #155724;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Credits Content */
.cb-credits-content {
    padding: 2rem;
}

.cb-credits-summary {
    background: linear-gradient(135deg, #A22C2A, #C74A48);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.cb-credits-summary h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.cb-credits-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cb-credits-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.cb-credits-label {
    font-size: 1rem;
    opacity: 0.9;
}

.cb-credits-info-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cb-credits-history {
    margin-top: 2rem;
}

.cb-credits-history h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.cb-credits-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cb-credits-table thead {
    background: #A22C2A;
}

.cb-credits-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.cb-credits-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
}

.cb-credits-table tbody tr:hover {
    background: #f8f9fa;
}

.cb-credits-table tbody tr:last-child td {
    border-bottom: none;
}

.cb-credit-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cb-credit-type-awarded {
    background: #d4edda;
    color: #155724;
}

.cb-credit-type-used {
    background: #f8d7da;
    color: #721c24;
}

.cb-credit-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.cb-credit-amount-awarded {
    color: #28a745;
}

.cb-credit-amount-used {
    color: #dc3545;
}

.cb-credits-no-history {
    padding: 2rem;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* ============================================
   TRANSACTIONS AND CREDITS - IMPROVED STYLES
   ============================================ */

/* Transactions and Credits Content */
.cb-transactions-credits-content {
    margin-top: 20px;
}

/* Credits Summary Card - Improved Design */
.cb-credits-summary-card {
    background: linear-gradient(135deg, #A22C2A 0%, #C74A48 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(162, 44, 42, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.cb-credits-summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cb-credits-header h4 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cb-credits-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.cb-credits-display .cb-credits-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.cb-credits-display .cb-credits-label {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.cb-credits-summary-card .cb-credits-info-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Transactions Section */
.cb-transactions-section {
    margin-bottom: 40px;
}

.cb-transactions-section h4 {
    margin: 0 0 20px 0;
    color: #A22C2A;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 3px solid #A22C2A;
}

.cb-transactions-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

.cb-transactions-table-wrapper .cb-transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
    margin: 0;
}

.cb-transactions-table-wrapper .cb-transactions-table thead {
    background: #A22C2A !important;
}

.cb-transactions-table-wrapper .cb-transactions-table thead th {
    padding: 15px !important;
    text-align: left !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}

.cb-transactions-table-wrapper .cb-transactions-table tbody td {
    padding: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 14px !important;
    vertical-align: top !important;
    color: #333 !important;
}

.cb-transactions-table-wrapper .cb-transactions-table tbody tr:hover {
    background: #f8f9fa !important;
}

.cb-transactions-table-wrapper .cb-transactions-table tbody tr:last-child td {
    border-bottom: none !important;
}

.cb-transaction-type {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.cb-transaction-type + small {
    color: #666;
    font-size: 12px;
}

.cb-no-date, .cb-no-time {
    color: #999;
    font-style: italic;
}

.cb-payment-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cb-payment-paid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cb-payment-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.cb-payment-none {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cb-payment-status small {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    text-transform: none;
}

.cb-payment-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
}

.cb-payment-amount-none {
    color: #999;
    font-style: italic;
}

.cb-no-transactions {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Credits History Section - Improved Design */
.cb-credits-history-section {
    margin-top: 40px;
}

.cb-credits-history-section h4 {
    margin: 0 0 20px 0;
    color: #A22C2A;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 3px solid #A22C2A;
}

.cb-credits-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

.cb-credits-table-wrapper .cb-credits-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
    margin: 0;
}

.cb-credits-table-wrapper .cb-credits-table thead {
    background: #A22C2A !important;
}

.cb-credits-table-wrapper .cb-credits-table thead th {
    padding: 15px !important;
    text-align: left !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    border-bottom: 2px solid rgba(255,255,255,0.2) !important;
}

.cb-credits-table-wrapper .cb-credits-table tbody td {
    padding: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 14px !important;
    color: #333 !important;
}

.cb-credits-table-wrapper .cb-credits-table tbody tr:hover {
    background: #f8f9fa !important;
}

.cb-credits-table-wrapper .cb-credits-table tbody tr:last-child td {
    border-bottom: none !important;
}

.cb-credit-type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cb-credit-type-badge.cb-credit-type-awarded {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cb-credit-type-badge.cb-credit-type-used {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cb-credit-amount-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    min-width: 60px;
    text-align: center;
}

.cb-credit-amount-badge.cb-credit-amount-awarded {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.cb-credit-amount-badge.cb-credit-amount-used {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

/* Notifications Styles */
.cb-notifications-container {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.cb-notifications-bell {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    position: relative;
    padding: 5px 10px;
    transition: transform 0.2s;
    line-height: 1;
}

.cb-notifications-bell:hover {
    transform: scale(1.1);
}

.cb-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    min-width: 20px;
    z-index: 10;
}

#cb-notifications-modal.cb-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

#cb-notifications-modal.cb-modal .cb-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

#cb-notifications-modal.cb-modal .cb-modal-content h3 {
    margin: 0;
    padding: 20px;
    background: #A22C2A;
    color: white;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    font-weight: 600;
}

#cb-notifications-modal.cb-modal .cb-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

#cb-notifications-modal.cb-modal .cb-modal-close:hover,
#cb-notifications-modal.cb-modal .cb-modal-close:focus {
    color: #f0f0f0;
    text-decoration: none;
}

.cb-notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.cb-no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.cb-notification-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.cb-notification-item:hover {
    background: #f8f9fa;
}

.cb-notification-item.cb-notification-unread {
    background: #fff5f5;
    border-left: 4px solid #A22C2A;
    padding-left: 11px;
}

.cb-notification-item:last-child {
    border-bottom: none;
}

.cb-notification-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.cb-notification-message {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
} 