/* Enhanced UI Styles for FASTR2 Scheduler */

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ========================================
   ENHANCED CARD STYLES
   ======================================== */
.practitioner-card,
.device-card {
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.practitioner-card:nth-child(1) { animation-delay: 0.1s; }
.practitioner-card:nth-child(2) { animation-delay: 0.2s; }
.practitioner-card:nth-child(3) { animation-delay: 0.3s; }
.practitioner-card:nth-child(4) { animation-delay: 0.4s; }
.practitioner-card:nth-child(5) { animation-delay: 0.5s; }
.practitioner-card:nth-child(6) { animation-delay: 0.6s; }

.practitioner-card:hover,
.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.practitioner-card::before,
.device-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease-in-out;
}

.practitioner-card:hover::before,
.device-card:hover::before {
    left: 100%;
}

/* ========================================
   ENHANCED PHOTO STYLES
   ======================================== */
.practitionerPhotoDiv {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
    border-radius: 8px 0 0 8px;
    transition: transform 0.3s ease;
}

.practitioner-card:hover .practitionerPhotoDiv,
.device-card:hover .practitionerPhotoDiv {
    transform: scale(1.05);
}

.practitionerPhotoClass {
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* ========================================
   ENHANCED CARD CONTENT
   ======================================== */
.card-body {
    padding: 1.5rem;
    position: relative;
}

.practitioner-card .card-title,
.device-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    position: relative;
    padding-bottom: 0.75rem;
}

.practitioner-card .card-title::after,
.device-card .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bs-primary, #007bff);
    transition: width 0.3s ease;
}

.practitioner-card:hover .card-title::after,
.device-card:hover .card-title::after {
    width: 100px;
}

/* General card title styling without underline */
.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Bio text styling */
.editableContent[id^="practitionerBioDiv_"] {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   AVAILABILITY INDICATOR
   ======================================== */
.availability-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

/* ========================================
   ENHANCED MODAL STYLES
   ======================================== */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.3s ease-out;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 2rem;
}

/* Scrollable modal body with height limit */
.modal-body-scrollable,
#locationModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: auto; /* For Firefox - thicker */
    scrollbar-color: #6c757d #f8f9fa; /* For Firefox - gray thumb, light track */
    position: relative;
}

/* Add scroll indicator to location modal footer - only when scrolling is needed */
#locationModal .modal-body.has-scroll ~ .modal-footer::before {
    content: '⬇ Scroll for more ⬇';
    display: block;
    text-align: center;
    color: #0d6efd;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid #0d6efd;
    margin-bottom: 0.75rem;
    width: 100%;
}

/* Add scroll indicator for appointment type modal (no footer) - only when scrolling is needed */
.modal-body-scrollable.has-scroll::after {
    content: '⬇ Scroll for more ⬇';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    text-align: center;
    background: #ffffff;
    color: #0d6efd;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 1rem 0 0.5rem;
    pointer-events: none;
    box-shadow: 0 -4px 10px rgba(13, 110, 253, 0.15);
    border-top: 2px solid #0d6efd;
    z-index: 10;
}

/* Webkit scrollbar styling for modal bodies */
.modal-body-scrollable::-webkit-scrollbar,
#locationModal .modal-body::-webkit-scrollbar {
    width: 12px;
    -webkit-appearance: none;
}

.modal-body-scrollable::-webkit-scrollbar-track,
#locationModal .modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 6px;
}

.modal-body-scrollable::-webkit-scrollbar-thumb,
#locationModal .modal-body::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 6px;
    border: 2px solid #f8f9fa;
}

.modal-body-scrollable::-webkit-scrollbar-thumb:hover,
#locationModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

/* Make scrollbars even more visible on mobile */
@media (max-width: 768px) {
    /* Reduce modal body height on mobile to prevent button cutoff */
    .modal-body-scrollable,
    #locationModal .modal-body {
        max-height: 50vh;
    }

    .modal-body-scrollable::-webkit-scrollbar,
    #locationModal .modal-body::-webkit-scrollbar {
        width: 14px;
    }

    .modal-body-scrollable::-webkit-scrollbar-thumb,
    #locationModal .modal-body::-webkit-scrollbar-thumb {
        background: #6c757d;
        border: 3px solid #f8f9fa;
    }

    /* Adjust scroll indicators on mobile for better visibility */
    #locationModal .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-body-scrollable::after {
        font-size: 1rem;
        padding: 1.5rem 1rem 1rem;
    }
}

/* ========================================
   ENHANCED LOCATION SELECTION
   ======================================== */
.location-select-wrapper {
    position: relative;
}

.location-card {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.location-card:hover {
    border-color: var(--bs-primary, #007bff);
    background: #fff;
    transform: translateX(5px);
}

.location-card.selected {
    border-color: var(--bs-primary, #007bff);
    background: rgba(0, 123, 255, 0.1);
}

/* ========================================
   ENHANCED BUTTONS
   ======================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   SLOT BUTTONS
   ======================================== */
.slotButton,
.slot-btn {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.slotButton:hover,
.slot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   LOADING STATES
   ======================================== */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

.loading-card {
    height: 200px;
    margin-bottom: 1rem;
}

/* ========================================
   PROGRESS INDICATOR
   ======================================== */
.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.progress-step:last-child::before {
    display: none;
}

.progress-step.active::before {
    background: var(--bs-primary, #007bff);
}

.progress-step.completed::before {
    background: #4CAF50;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: var(--bs-primary, #007bff);
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .progress-circle {
    background: #4CAF50;
    color: white;
}

.progress-label {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 768px) {
    .practitionerPhotoDiv {
        height: 150px;
        border-radius: 8px 8px 0 0;
    }
    
    .practitionerPhotoClass {
        border-radius: 8px 8px 0 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .booking-progress {
        padding: 0;
    }
    
    .progress-label {
        font-size: 0.75rem;
    }
    
    .progress-circle {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.practitioner-card:focus,
.device-card:focus,
.location-card:focus {
    outline: 3px solid var(--bs-primary, #007bff);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .practitioner-card,
    .device-card {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   NO SLOTS FOUND SCREEN
   ======================================== */
.no-slots-icon {
    animation: pulse 2s infinite;
}

/* Enhanced date selector */
#weekSelector {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#weekSelector:focus {
    border-color: var(--bs-primary, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#weekSelector option {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

#weekSelector option:hover {
    background-color: #f8f9fa;
}

#weekSelector option:checked {
    background: linear-gradient(to right, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    font-weight: 600;
}

#weekSelector option:disabled {
    color: #999;
    font-style: italic;
}

/* Card styling for no slots */
.no-slots-card {
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Loading animation for date selection */
.date-select-loading {
    position: relative;
    overflow: hidden;
}

.date-select-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    animation: loading-sweep 1.5s infinite;
}

@keyframes loading-sweep {
    100% {
        left: 100%;
    }
}

/* ========================================
   ENHANCED HEADER STYLES
   ======================================== */
#secondaryNavBar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 16px 16px;
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

#secondaryNavBar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 8s infinite;
}

.secondaryBar {
    position: relative;
    z-index: 1;
}

.location-info {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.location-info:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-info strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.location-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.location-details {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.logo img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Empty state for location info */
.location-info:empty {
    display: none;
}

/* Header without location info */
#secondaryNavBar:has(.location-info:empty) .secondaryBar {
    justify-content: center;
}

#secondaryNavBar:has(.location-info:empty) .logo {
    margin: 0 auto;
}

/* Mobile responsiveness for header */
@media (max-width: 768px) {
    #secondaryNavBar {
        padding: 1rem 0;
    }
    
    .secondaryBar {
        flex-direction: column !important;
    }
    
    .location-info {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .location-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo img {
        max-height: 60px;
    }
}

/* ========================================
   ENHANCED TEST MODE BANNER
   ======================================== */
.test-mode-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    margin: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(238, 90, 111, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.5s ease-out;
}

.test-mode-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

.test-mode-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.test-mode-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.test-mode-text {
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ========================================
   CUSTOM STYLING OVERRIDES
   ======================================== */
/* These will be overridden by dashboard settings */
.custom-primary-bg {
    background-color: var(--custom-primary-color, #007bff) !important;
}

.custom-primary-text {
    color: var(--custom-primary-color, #007bff) !important;
}

.custom-secondary-bg {
    background-color: var(--custom-secondary-color, #6c757d) !important;
}

.custom-secondary-text {
    color: var(--custom-secondary-color, #6c757d) !important;
}

/* ========================================
   COMPACT NO SLOTS DISPLAY
   ======================================== */
/* Reduce padding when showing no appointments */
#slotsContainer:has(.bi-calendar-x) {
    padding: 0;
}

/* Compact card for no slots message */
#slotsModal .card.border-0 {
    transition: all 0.3s ease;
}

/* Reduce modal body padding when no slots */
.modal-body:has(.bi-calendar-x) {
    padding: 1rem !important;
}

/* Compact form select styling */
#weekSelectorNoSlots {
    background-color: #fff;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

#weekSelectorNoSlots:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#weekSelectorNoSlots option {
    padding: 0.75rem;
    font-size: 0.9rem;
}

#weekSelectorNoSlots option:hover {
    background-color: #e9ecef;
}

/* Responsive adjustments for no slots display */
@media (max-width: 768px) {
    #weekSelectorNoSlots {
        font-size: 0.85rem;
    }
    
    .modal-body:has(.bi-calendar-x) {
        padding: 0.75rem !important;
    }
}

/* ========================================
   ENHANCED SLOT TABS
   ======================================== */
.slot-day-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
}

.slot-day-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: transparent;
}

.slot-day-tabs .nav-link:hover {
    color: var(--bs-primary);
    border-bottom-color: rgba(0, 123, 255, 0.3);
}

.slot-day-tabs .nav-link.active {
    color: var(--bs-primary);
    background: transparent;
    border-bottom-color: var(--bs-primary);
    font-weight: 600;
}

.slot-day-tabs .nav-link strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.slot-day-tabs .nav-link .small {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Slot buttons in tab content */
.tab-content .slot-btn {
    padding: 0.75rem;
    font-size: 0.95rem;
    border: 2px solid #dee2e6;
    background: white;
    color: #495057;
    transition: all 0.2s ease;
}

.tab-content .slot-btn:hover:not(:disabled) {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Disabled slot buttons with diagonal line */
.slot-btn:disabled {
    position: relative;
    opacity: 0.5;
    cursor: not-allowed;
    overflow: hidden;
}

.slot-btn:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    right: -10%;
    height: 5px;
    background: #dc3545;
    transform: rotate(45deg);
    pointer-events: none;
}

/* Accordion for mobile */
.accordion-button {
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.accordion-button .badge {
    margin-left: auto;
}

.accordion-body {
    padding: 1rem;
}

/* Animation for tab switching */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   DEBUG WINDOW STYLES
   ======================================== */
.debug-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.debug-window.minimized {
    height: 40px;
    overflow: hidden;
}

.debug-header {
    background: #2d2d2d;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.debug-title {
    font-weight: bold;
    font-size: 14px;
}

.debug-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.debug-toggle,
.debug-clear {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.debug-toggle:hover,
.debug-clear:hover {
    color: #ddd;
}

.debug-content {
    max-height: 450px;
    overflow: hidden;
    background: #1e1e1e;
    border-radius: 0 0 8px 8px;
    display: flex;
}

.debug-calls-list {
    width: 200px;
    border-right: 1px solid #444;
    padding: 10px;
    overflow-y: auto;
}

.debug-calls-list h6 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calls-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.api-call-item {
    padding: 8px;
    background: #2d2d2d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.api-call-item:hover {
    background: #3d3d3d;
}

.api-call-item.active {
    background: #0d6efd;
    border-color: #0d6efd;
}

.api-call-item .call-method {
    color: #4CAF50;
    font-weight: bold;
}

.api-call-item .call-endpoint {
    color: #9CDCFE;
    word-break: break-all;
    font-size: 10px;
    margin-top: 2px;
}

.api-call-item .call-time {
    color: #999;
    font-size: 9px;
    margin-top: 2px;
}

.api-call-item .call-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    margin-top: 4px;
}

.api-call-item .call-status.success {
    background: #198754;
    color: white;
}

.api-call-item .call-status.error {
    background: #dc3545;
    color: white;
}

.api-call-item .call-status.pending {
    background: #ffc107;
    color: #000;
}

.debug-details {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.debug-section {
    margin-bottom: 20px;
}

.debug-section h6 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.debug-payload {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    color: #dcdcdc;
    overflow-x: auto;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Syntax highlighting for JSON */
.debug-payload .json-key {
    color: #9CDCFE;
}

.debug-payload .json-value {
    color: #CE9178;
}

.debug-payload .json-number {
    color: #B5CEA8;
}

.debug-payload .json-boolean {
    color: #569CD6;
}

/* Scrollbar styling for debug window */
.debug-content::-webkit-scrollbar,
.debug-payload::-webkit-scrollbar {
    width: 8px;
}

.debug-content::-webkit-scrollbar-track,
.debug-payload::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.debug-content::-webkit-scrollbar-thumb,
.debug-payload::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.debug-content::-webkit-scrollbar-thumb:hover,
.debug-payload::-webkit-scrollbar-thumb:hover {
    background: #666;
}

@media (max-width: 768px) {
    .debug-window {
        width: 300px;
        max-height: 400px;
        bottom: 10px;
        right: 10px;
    }
}