/* Enhanced User Bookings Styles - WordPress Admin Compatible */
.wcbook-user-bookings-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background: #f0f0f1; /* WordPress admin background */
    min-height: 100vh;
    padding: 20px 0;
}

/* Login Prompt Styles */
.wcbook-login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.login-card {
    background: #fff;
    padding: 30px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid #ccd0d4;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: #2271b1; /* WordPress blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-icon i {
    color: white;
    font-size: 2rem;
}

.login-card h3 {
    color: #1d2327; /* WordPress admin text color */
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.5rem;
}

.login-card p {
    color: #646970; /* WordPress secondary text */
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Header Styles */
.bookings-header {
    background: #fff;
    margin: -20px 0 20px;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.bookings-title {
    color: #1d2327;
    font-weight: 500;
    font-size: 1.75rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Stats Cards */
.stat-card {
    background: #fff;
    padding: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    border: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.25rem;
    color: white;
}

.stat-total .stat-icon {
    background: #2271b1; /* WordPress blue */
}

.stat-confirmed .stat-icon {
    background: #4ab866; /* WordPress green */
}

.stat-upcoming .stat-icon {
    background: #d63638; /* WordPress red */
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1d2327;
    margin: 0 0 5px 0;
    line-height: 1;
}

.stat-content p {
    color: #646970;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Table Container */
.bookings-table-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    margin: 0 0 20px 0;
}

.table-header {
    background: #f6f7f7;
    padding: 15px 20px;
    border-bottom: 1px solid #ccd0d4;
}

.table-header h4 {
    color: #1d2327;
    font-weight: 500;
    margin: 0;
    font-size: 1.25rem;
}

/* Filter Buttons */
.filter-buttons {
    padding: 15px 20px;
    background: #f6f7f7;
    border-bottom: 1px solid #ccd0d4;
}

.filter-buttons .btn {
    border-radius: 3px;
    padding: 5px 10px;
    font-weight: 400;
    font-size: 0.875rem;
    margin-right: 8px;
    border: 1px solid #2271b1;
    background: #f6f7f7;
    color: #2271b1;
}

.filter-buttons .btn.active {
    background: #2271b1;
    color: white;
}

/* DataTable Enhancements */
.dataTables_wrapper {
    padding: 20px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #8c8f94;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 0.875rem;
    width: 250px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #8c8f94;
    border-radius: 3px;
    padding: 5px;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_info {
    color: #646970;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #dcdcde !important;
    background: #f6f7f7 !important;
    color: #2271b1 !important;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 3px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f0f0f1 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2271b1 !important;
    color: white !important;
    border-color: #2271b1 !important;
}

/* Table Styling */
#wcbook-user-bookings-table {
    border: none;
    font-size: 0.875rem;
    width: 100% !important;
}

#wcbook-user-bookings-table thead th {
    background: #f6f7f7;
    color: #1d2327;
    border: none;
    border-bottom: 1px solid #ccd0d4;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 0.8125rem;
    vertical-align: middle;
}

#wcbook-user-bookings-table tbody tr {
    border-bottom: 1px solid #ccd0d4;
}

#wcbook-user-bookings-table tbody tr:hover {
    background: #f6f7f7;
}

#wcbook-user-bookings-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    color: #2c3338;
}

.today-booking {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
}

/* Content Styling */
.booking-date strong {
    color: #1d2327;
    font-weight: 500;
}

.booking-date small {
    color: #646970;
    display: block;
    margin-top: 3px;
}

.order-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 400;
}

.order-link:hover {
    color: #135e96;
}

.order-number {
    font-family: monospace;
    background: #f6f7f7;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 0.8125rem;
    color: #1d2327;
}

.product-info {
    color: #2c3338;
}

/* Platform Badges */
.platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 400;
    background: #f6f7f7;
    color: #2c3338;
    border: 1px solid #dcdcde;
}

.platform-zoom {
    background: #f0f6fc;
    border-color: #72aee6;
    color: #0a4b78;
}

.platform-google {
    background: #f8eaeb;
    border-color: #e65054;
    color: #8a2424;
}

/* Meeting Time */
.meeting-time {
    line-height: 1.4;
}

.meeting-date {
    color: #1d2327;
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
}

.meeting-duration {
    display: flex;
    align-items: center;
    color: #646970;
    font-size: 0.8125rem;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 400;
}

.status-confirmed {
    background: #edfaef;
    color: #1d7a44;
    border: 1px solid #4ab866;
}

.status-failed {
    background: #f8eaeb;
    color: #8a2424;
    border: 1px solid #e65054;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn {
    border-radius: 3px;
    font-weight: 400;
    font-size: 0.8125rem;
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid;
}

.btn-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.btn-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: white;
}

.btn-outline-secondary {
    border-color: #646970;
    color: #646970;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #646970;
    color: white;
}

.btn-outline-danger {
    border-color: #d63638;
    color: #d63638;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #d63638;
    color: white;
}

/* Empty State */
.empty-state {
    padding: 30px 20px;
    text-align: center;
    color: #646970;
}

.empty-state i {
    opacity: 0.5;
    font-size: 3rem;
    margin-bottom: 15px;
    color: #646970;
}

.empty-state h5 {
    color: #1d2327;
    margin-bottom: 10px;
    font-weight: 500;
}

.empty-state p {
    color: #646970;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 782px) {
    .wcbook-user-bookings-wrapper {
        padding: 10px 0;
    }
    
    .bookings-header {
        margin: -10px 0 15px;
        padding: 15px;
    }
    
    .bookings-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .dataTables_wrapper {
        padding: 15px;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .filter-buttons {
        padding: 10px 15px;
    }
    
    #wcbook-user-bookings-table thead th,
    #wcbook-user-bookings-table tbody td {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .login-card {
        padding: 20px 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btn {
        width: 100%;
        text-align: center;
    }
}
#wcbook-user-bookings-table_length select {
    width: 60px !important;
}