/* ============================================
   NoBot - Bot protection component styles
   ============================================ */

.nobot-container {
    margin: 1rem 0;
}

.nobot-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nobot-visible {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
}

.nobot-countdown {
    text-align: center;
}

.nobot-countdown-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.nobot-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: nobot-spin 1s linear infinite;
}

@keyframes nobot-spin {
    to { transform: rotate(360deg); }
}

.nobot-slider-container {
    text-align: center;
}

.nobot-label {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.9rem;
}

.nobot-label.success {
    color: #198754;
    font-weight: 600;
}

.nobot-track {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 44px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 22px;
    margin: 0 auto;
    overflow: hidden;
    user-select: none;
}

.nobot-track.completed {
    background: linear-gradient(90deg, #d1e7dd 0%, #badbcc 100%);
}

.nobot-handle {
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.2rem;
    transition: box-shadow 0.2s;
    z-index: 2;
}

.nobot-handle:hover {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.nobot-handle.dragging {
    cursor: grabbing;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.nobot-handle.completed {
    background: #198754;
    border-color: #198754;
    color: #fff;
    cursor: default;
}

.nobot-target {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 40px;
    height: 40px;
    background: rgba(25, 135, 84, 0.1);
    border: 2px dashed #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #198754;
    font-size: 1.2rem;
}

.nobot-track.completed .nobot-target {
    opacity: 0;
}

/* Error state */
.nobot-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* ============================================
   Dark Theme
   ============================================ */

[data-bs-theme="dark"] .nobot-visible {
    background: var(--bg-card, #2b3035);
    border-color: var(--border-color, #495057);
}

[data-bs-theme="dark"] .nobot-countdown-inner {
    color: var(--text-muted, #adb5bd);
}

[data-bs-theme="dark"] .nobot-spinner {
    border-color: var(--border-color, #495057);
    border-top-color: #0d6efd;
}

[data-bs-theme="dark"] .nobot-label {
    color: var(--text-primary, #e9ecef);
}

[data-bs-theme="dark"] .nobot-label.success {
    color: #75b798;
}

[data-bs-theme="dark"] .nobot-track {
    background: linear-gradient(90deg, #343a40 0%, #495057 100%);
}

[data-bs-theme="dark"] .nobot-track.completed {
    background: linear-gradient(90deg, #0a3622 0%, #146c43 100%);
}

[data-bs-theme="dark"] .nobot-handle {
    background: #212529;
    border-color: #0d6efd;
    color: #6ea8fe;
}

[data-bs-theme="dark"] .nobot-handle:hover {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

[data-bs-theme="dark"] .nobot-handle.dragging {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.35);
}

[data-bs-theme="dark"] .nobot-handle.completed {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

[data-bs-theme="dark"] .nobot-target {
    background: rgba(25, 135, 84, 0.2);
    border-color: #198754;
    color: #75b798;
}

[data-bs-theme="dark"] .nobot-error {
    color: #ea868f;
}
