/**
 * Right Click Disable Free - Admin CSS
 * 
 * Styles for settings interface
 * 
 * @package Right_Click_Disable_OR_Ban
 * @since 1.0.0
 */

/* Settings Page Container */
.wrap:has(.rcb-page-header) {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header */
.rcb-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    margin: 0 0 25px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.rcb-header-icon {
    font-size: 48px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rcb-header-content {
    flex: 1;
}

.rcb-page-title {
    margin: 0 0 5px 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.rcb-page-subtitle {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.rcb-page-version {
    display: inline-block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.rcb-header-save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rcb-header-save-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rcb-header-save-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Header Stats */
.rcb-header-stats-simple {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.rcb-header-stats-simple .stats-label {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.rcb-header-stats-simple .stats-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

/* Toast Notification */
.rcb-toast {
    position: fixed;
    top: 50px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
    font-size: 13px;
    font-weight: 500;
    z-index: 9999999;
    transition: all 0.3s ease;
}

.rcb-toast.rcb-toast-hide {
    transform: translateX(400px);
    opacity: 0;
}

.rcb-toast.rcb-toast-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Tab Navigation */
.rcb-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #667eea;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
}

.rcb-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    text-align: center;
}

.rcb-tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.rcb-tab-btn.active {
    background: #fff;
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.rcb-tab-btn .tab-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.rcb-tab-btn .tab-label {
    display: block;
    font-size: 12px;
}

/* Tab Content */
.rcb-tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    animation: fadeIn 0.3s ease;
}

.rcb-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Container */
.rcb-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.rcb-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rcb-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rcb-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rcb-card-title .card-icon {
    font-size: 18px;
}

.rcb-card-body {
    padding: 20px;
}

/* Pro Card */
.rcb-card.rcb-card-pro {
    border-color: #fbbf24;
}

.rcb-card.rcb-card-pro .rcb-card-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom-color: #fcd34d;
}

.rcb-card.rcb-card-pro .rcb-card-title {
    color: #92400e;
}

.rcb-card .pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Settings Row */
.rcb-setting-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.rcb-setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rcb-setting-row:first-child {
    padding-top: 0;
}

.rcb-setting-info {
    flex: 1;
    padding-right: 20px;
}

.rcb-setting-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.rcb-setting-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.rcb-setting-control {
    flex-shrink: 0;
}

/* Toggle Switch */
.rcb-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.rcb-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rcb-switch-slider {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    background: #d1d5db;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rcb-switch-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rcb-switch-input:checked+.rcb-switch-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.rcb-switch-input:checked+.rcb-switch-slider::before {
    transform: translateX(24px);
}

.rcb-switch-slider:hover {
    background: #9ca3af;
}

.rcb-switch-input:checked+.rcb-switch-slider:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Form Controls */
.rcb-textarea {
    width: 100%;
    max-width: 500px;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}

.rcb-textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Save Button */
.rcb-save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.rcb-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Button Utilities */
.rcb-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rcb-btn-danger:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.rcb-btn-danger .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.rcb-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rcb-btn-outline:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.rcb-btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}

/* Info Box */
.rcb-info-box {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.rcb-info-box p {
    margin: 0;
    font-size: 13px;
    color: #495057;
}

/* Analytics Summary */
.rcb-weekly-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.rcb-weekly-stat {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.rcb-weekly-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.rcb-weekly-stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rcb-weekly-stat.stat-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.rcb-weekly-stat.stat-highlight .rcb-weekly-stat-value,
.rcb-weekly-stat.stat-highlight .rcb-weekly-stat-label {
    color: #fff;
}

/* Chart Styles */
.rcb-chart-container {
    margin: 20px 0;
}

.rcb-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcb-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rcb-chart-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rcb-chart-label {
    width: 120px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-align: right;
    flex-shrink: 0;
}

.rcb-chart-bar-container {
    flex: 1;
    height: 28px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
}

.rcb-chart-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.6s ease-out;
    min-width: 2px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.rcb-chart-value {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rcb-chart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}

.rcb-chart-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .rcb-tabs-nav {
        flex-direction: column;
    }

    .rcb-tab-btn {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }

    .rcb-weekly-summary {
        grid-template-columns: 1fr;
    }

    .rcb-page-header {
        flex-direction: column;
        text-align: center;
    }
}