/* Dashboard Layout */
.ctrlbs-dashboard {
    max-width: 1200px;
    margin: 20px auto;
}

/* Stats Grid */
.ctrlbs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ctrlbs-stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #2271b1;
}

.ctrlbs-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    margin: 10px 0;
}

.ctrlbs-stat-label {
    color: #50575e;
    font-size: 14px;
    text-transform: uppercase;
}

/* Bookings Table */
.ctrlbs-bookings-wrap {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.ctrlbs-bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.ctrlbs-bookings-table th {
    background: #f0f0f1;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.ctrlbs-bookings-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f1;
}

/* Status Badges */
.ctrlbs-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ctrlbs-status-upcoming {
    background: #e1f3ff;
    color: #0073aa;
}

.ctrlbs-status-past {
    background: #f0f0f1;
    color: #50575e;
}

.ctrlbs-status-active {
    background: #e1f3ff;
    color: #0073aa;
}

/* Action Buttons */
.ctrlbs-action-buttons {
    white-space: nowrap;
}

.ctrlbs-action-button {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 13px;
}

.ctrlbs-button-cancel {
    background: #dc3232;
    color: white;
}

.ctrlbs-button-cancel:hover {
    background: #cc2828;
}

.ctrlbs-button-cancel .dashicons {
    color: white;
}

/* Tabs */
.nav-tab-wrapper {
    margin-bottom: 20px;
}

.ctrlbs-tab-content {
    display: none !important;
}

.ctrlbs-tab-content.active {
    display: block !important;
}

/* Donation Notice */
.ctrlbs-donation-notice {
    background: #fff;
    border-left: 4px solid #2271b1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
}

/* Settings Page */
.ctrlbs-settings {
    max-width: 1200px;
    margin: 20px auto;
}

/* Cards */
.ctrlbs-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ctrlbs-card h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #1d2327;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Forms */
.ctrlbs-form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.ctrlbs-form-table td {
    padding: 15px 10px;
}

.ctrlbs-form-table input {
    width: 100%;
    max-width: 400px;
}

.ctrlbs-form-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.ctrlbs-regular-text {
    width: 100%;
    max-width: 400px;
}

.ctrlbs-description {
    color: #666;
    font-style: italic;
    margin: 5px 0;
}

/* Services Page */
.ctrlbs-services {
    max-width: 1200px;
    margin: 0 auto;
}

.ctrlbs-service-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ctrlbs-service-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.ctrlbs-services-table {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.ctrlbs-services-table .widefat {
    border: none;
}

.ctrlbs-services-table th {
    background: #f8f9fa;
    padding: 12px;
    font-weight: 600;
}

.ctrlbs-services-table td {
    padding: 12px;
    vertical-align: middle;
}

.ctrlbs-service-actions {
    display: flex;
    gap: 8px;
}

.ctrlbs-price-column {
    font-weight: 600;
    color: #2271b1;
}

.ctrlbs-add-new-service {
    margin: 20px 0;
}

/* Icons */
.ctrlbs-dashicons {
    color: #2271b1;
    vertical-align: middle;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .ctrlbs-stats-grid {
        grid-template-columns: 1fr;
    }

    .ctrlbs-form-table th {
        width: 100%;
        display: block;
    }

    .ctrlbs-form-table td {
        display: block;
        padding: 0 0 15px 0;
    }

    .ctrlbs-action-buttons {
        flex-direction: column;
    }

    .ctrlbs-action-button {
        width: 100%;
        margin-bottom: 4px;
    }

    .ctrlbs-stat-card {
        padding: 15px;
    }

    .ctrlbs-service-actions {
        flex-direction: column;
    }

    .ctrlbs-service-actions .button {
        width: 100%;
        margin-bottom: 4px;
    }
}