/**
 * Admin Styles for WP Rate Limiter
 */

.turborl-admin-wrap {
    margin-top: 20px;
}

.turborl-admin-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.turborl-main-content {
    flex: 1;
    min-width: 0;
}

.turborl-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Sections */
.turborl-filters-section,
.turborl-filter-form-section,
.turborl-test-mode-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.turborl-filters-section h2,
.turborl-filter-form-section h2,
.turborl-test-mode-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #c3c4c7;
}

/* Filters Table */
.turborl-filters-table {
    margin-top: 15px;
}

.turborl-filters-table th,
.turborl-filters-table td {
    padding: 10px;
    vertical-align: middle;
}

.turborl-filters-table code {
    font-size: 12px;
    background: #f1f1f1;
    padding: 2px 6px;
}

.turborl-filter-disabled {
    opacity: 0.6;
}

.turborl-filter-disabled td {
    background: #f9f9f9;
}

/* Status badges */
.turborl-status-enabled {
    color: #00a32a;
    font-weight: 600;
}

.turborl-status-disabled {
    color: #d63638;
    font-weight: 600;
}

/* Form styling */
.turborl-action-field {
    display: none;
}

.turborl-action-field.turborl-action-url,
.turborl-action-field.turborl-action-page {
    display: table-row;
}

/* Test mode notice */
.turborl-test-mode-notice {
    border-left: 4px solid #ff9800;
}

/* Test info table */
.turborl-test-info-table th,
.turborl-test-info-table td {
    padding: 8px;
}

.turborl-test-exceeded {
    background: #fff3cd;
}

.turborl-test-would-block {
    color: #d63638;
    font-weight: 600;
}

/* Sidebar */
.turborl-sidebar-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.turborl-sidebar-section h3 {
    margin-top: 0;
    font-size: 14px;
    color: #1d2327;
}

.turborl-sidebar-section ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.turborl-sidebar-section li {
    margin-bottom: 5px;
}

/* Button styling */
.turborl-delete-filter {
    color: #d63638 !important;
}

.turborl-delete-filter:hover {
    color: #b32d2e !important;
    border-color: #b32d2e !important;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .turborl-admin-container {
        flex-direction: column;
    }

    .turborl-sidebar {
        width: 100%;
    }
}

/* WordPress 5.5+ compatibility */
.wp-admin .turborl-admin-wrap input[type="text"],
.wp-admin .turborl-admin-wrap input[type="url"],
.wp-admin .turborl-admin-wrap input[type="number"],
.wp-admin .turborl-admin-wrap select {
    margin-top: 5px;
}

/* Notice styling */
.turborl-admin-wrap .notice {
    margin: 20px 0;
}
