/* Container auf volle Breite */
.cbs-remote-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.cbs-dashboard-header {
    background: white;
    padding: 2rem 3rem;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cbs-dashboard-header h1 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 2rem;
}

.cbs-dashboard-header p {
    margin: 0 0 1.5rem 0;
    color: #666;
}

.cbs-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cbs-filters select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    transition: border-color 0.2s;
    min-width: 200px;
}

.cbs-filters select:hover,
.cbs-filters select:focus {
    border-color: #2196f3;
    outline: none;
}

.cbs-btn-refresh {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cbs-btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.cbs-btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cbs-loading {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
}

.cbs-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: cbs-spin 1s linear infinite;
}

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

/* Tabellen-Container - Full Width */
.cbs-table-container {
    background: white;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tabelle */
.cbs-bookings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.cbs-bookings-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cbs-bookings-table thead th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.cbs-bookings-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.cbs-bookings-table tbody tr:hover {
    background-color: #f8f9fa;
}

.cbs-bookings-table tbody tr:last-child {
    border-bottom: none;
}

.cbs-bookings-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

/* Status Column */
.cbs-col-status {
    min-width: 140px;
}

.cbs-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.cbs-status-offen {
    background: #fff3cd;
    color: #856404;
}

.cbs-status-kontaktiert {
    background: #d1ecf1;
    color: #0c5460;
}

.cbs-status-erledigt {
    background: #d4edda;
    color: #155724;
}

.cbs-status-noreply {
    background: #f8d7da;
    color: #721c24;
}

/* Datum Column */
.cbs-col-date {
    min-width: 160px;
}

.cbs-date-display {
    font-weight: 600;
    color: #333;
    display: block;
    font-size: 1rem;
}

.cbs-day-name {
    font-size: 0.875rem;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

/* Zeit Column */
.cbs-col-time {
    min-width: 140px;
}

.cbs-time-display {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Kunde Column */
.cbs-col-customer {
    min-width: 250px;
}

.cbs-customer-name {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cbs-customer-email {
    font-size: 0.875rem;
    color: #2196f3;
    text-decoration: none;
}

.cbs-customer-email:hover {
    text-decoration: underline;
}

/* Telefon Column */
.cbs-col-phone {
    min-width: 160px;
}

.cbs-phone-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.cbs-phone-link:hover {
    color: #2196f3;
}

/* Land Column */
.cbs-col-country {
    min-width: 100px;
    text-align: center;
}

.cbs-country-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f0f0f0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
}

/* Actions Column */
.cbs-col-actions {
    min-width: 180px;
}

.cbs-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.cbs-action-btn {
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 50px;
    line-height: 1;
}

.cbs-btn-kontaktiert {
    background: #17a2b8;
    color: white;
}

.cbs-btn-kontaktiert:hover:not(:disabled) {
    background: #138496;
    transform: translateY(-2px) scale(1.05);
}

.cbs-btn-erledigt {
    background: #28a745;
    color: white;
}

.cbs-btn-erledigt:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px) scale(1.05);
}

.cbs-btn-noreply {
    background: #dc3545;
    color: white;
}

.cbs-btn-noreply:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px) scale(1.05);
}

.cbs-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Booking ID */
.cbs-booking-id {
    color: #999;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Messages */
.cbs-error {
    background: #f8d7da;
    color: #721c24;
    padding: 2rem;
    border-radius: 0;
    margin: 0;
    border: none;
    border-left: 5px solid #dc3545;
    font-size: 1.1rem;
}

.cbs-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 5px solid #28a745;
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cbs-no-bookings {
    text-align: center;
    padding: 4rem;
    color: #666;
    font-size: 1.2rem;
    background: white;
}

/* Mobile Responsive */
@media (max-width: 1400px) {
    .cbs-dashboard-header {
        padding: 1.5rem 2rem;
    }
    
    .cbs-bookings-table td,
    .cbs-bookings-table th {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .cbs-remote-wrapper {
        padding: 0;
    }
    
    .cbs-dashboard-header {
        padding: 1.5rem 1rem;
    }
    
    .cbs-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .cbs-filters select,
    .cbs-btn-refresh {
        width: 100%;
    }
    
    .cbs-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cbs-bookings-table {
        min-width: 1000px;
    }
    
    .cbs-success {
        position: static;
        margin: 1rem;
        border-radius: 0;
    }
}

/* Scrollbar Styling */
.cbs-table-container::-webkit-scrollbar {
    height: 10px;
}

.cbs-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cbs-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.cbs-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}