/**
 * BotSubmit Admin Styles
 *
 * @package BotSubmit
 * @since 1.3.0
 */

/* CSS Variables */
:root {
    --botsubmit-bg: #334354;
    --botsubmit-accent: #f27f26;
    --botsubmit-text: #fff;
    --botsubmit-muted: #a0a8ab;
}

/* Header */
.botsubmit-header {
    background: var(--botsubmit-bg);
    padding: 20px 25px;
    margin: -10px -20px 20px -22px;
}

.botsubmit-header h1 {
    color: var(--botsubmit-text);
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.botsubmit-header h1 .botsubmit-logo {
    color: var(--botsubmit-accent);
}

/* Tabs */
.botsubmit-tabs {
    background: var(--botsubmit-bg);
    padding: 0 25px;
    margin: -20px -20px 25px -22px;
    border-bottom: 3px solid var(--botsubmit-accent);
}

.botsubmit-tabs .nav-tab {
    background: transparent;
    border: none;
    color: var(--botsubmit-muted);
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    transition: all 0.2s ease;
}

.botsubmit-tabs .nav-tab:hover {
    color: var(--botsubmit-text);
    background: rgba(255, 255, 255, 0.05);
}

.botsubmit-tabs .nav-tab-active,
.botsubmit-tabs .nav-tab-active:hover {
    background: var(--botsubmit-accent);
    color: var(--botsubmit-text);
    border-radius: 6px 6px 0 0;
}

/* Service cards */
.botsubmit-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.botsubmit-service-card:hover {
    border-left-color: var(--botsubmit-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.botsubmit-service-card.active {
    border-left-color: var(--botsubmit-accent);
    background: #fdf8f4;
}

.botsubmit-service-card .service-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.botsubmit-service-card .service-header label {
    font-size: 16px;
    font-weight: 600;
    color: var(--botsubmit-bg);
    cursor: pointer;
}

.botsubmit-service-card .service-link {
    color: var(--botsubmit-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.botsubmit-service-card .service-link:hover {
    text-decoration: underline;
}

/* Form inputs */
.botsubmit-input {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.botsubmit-input:focus {
    border-color: var(--botsubmit-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 127, 38, 0.15);
}

/* Buttons */
.botsubmit-btn {
    background: var(--botsubmit-accent);
    color: var(--botsubmit-text);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.botsubmit-btn:hover {
    background: #e06f1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 127, 38, 0.3);
}

.botsubmit-btn-secondary {
    background: var(--botsubmit-bg);
}

.botsubmit-btn-secondary:hover {
    background: #2a3744;
}

/* Section headers */
.botsubmit-section-title {
    color: var(--botsubmit-bg);
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--botsubmit-accent);
    display: inline-block;
}

/* Checkboxes styling */
.botsubmit-checkbox-group {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.botsubmit-checkbox-group input[type="checkbox"],
.botsubmit-service-card input[type="checkbox"] {
    margin: 0;
}

.botsubmit-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.botsubmit-checkbox-group label:hover {
    color: var(--botsubmit-accent);
}

/* Log table */
.botsubmit-log-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.botsubmit-log-table thead th {
    background: var(--botsubmit-bg);
    color: var(--botsubmit-text) !important;
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
    border: none;
}

.botsubmit-log-table tbody tr {
    transition: background 0.2s ease;
}

.botsubmit-log-table tbody tr:hover {
    background: #f8f9fa;
}

.botsubmit-log-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.botsubmit-log-table tbody tr:last-child td {
    border-bottom: none;
}

.botsubmit-log-table .log-success {
    background: #f0fdf4;
}

.botsubmit-log-table .log-error {
    background: #fef2f2;
}

/* Status badges */
.botsubmit-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.botsubmit-badge-success {
    background: #dcfce7;
    color: #166534;
}

.botsubmit-badge-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Footer */
.botsubmit-footer {
    background: var(--botsubmit-bg);
    padding: 20px 25px;
    margin: 40px -20px -20px -22px;
    text-align: center;
}

.botsubmit-footer a {
    color: var(--botsubmit-accent);
    text-decoration: none;
    font-weight: 600;
}

.botsubmit-footer a:hover {
    text-decoration: underline;
}

.botsubmit-footer p {
    color: var(--botsubmit-muted);
    margin: 0;
}

/* Resend button */
.botsubmit-resend-btn {
    background: var(--botsubmit-accent);
    color: var(--botsubmit-text);
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.botsubmit-resend-btn:hover {
    background: #e06f1a;
}

/* Clear log button */
.botsubmit-clear-btn {
    background: transparent;
    color: var(--botsubmit-bg);
    border: 2px solid var(--botsubmit-bg);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.botsubmit-clear-btn:hover {
    background: var(--botsubmit-bg);
    color: var(--botsubmit-text);
}

/* Export/Import section */
.botsubmit-export-import {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.botsubmit-export-box,
.botsubmit-import-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.botsubmit-export-box h3,
.botsubmit-import-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--botsubmit-bg);
}

@media (max-width: 782px) {
    .botsubmit-export-import {
        grid-template-columns: 1fr;
    }
}
