/**
 * Bot Lockout Admin Styles
 * 
 * Styles for the admin settings page.
 * 
 * @package BotLockout
 * @version 1.0.0
 */

/* Main container */
.bot-lockout-admin {
    max-width: 800px;
    margin: 20px 0;
}

/* Settings sections */
.bot-lockout-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 20px;
}

.bot-lockout-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #23282d;
    font-size: 1.3em;
}

.bot-lockout-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 1.1em;
}

/* Form fields */
.bot-lockout-field {
    margin-bottom: 20px;
}

.bot-lockout-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.bot-lockout-field input[type="text"],
.bot-lockout-field input[type="number"],
.bot-lockout-field textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.bot-lockout-field textarea {
    min-height: 100px;
    resize: vertical;
}

.bot-lockout-field input[type="checkbox"] {
    margin-right: 8px;
}

.bot-lockout-field .description {
    margin-top: 5px;
    color: #666;
    font-style: italic;
    font-size: 13px;
}

/* Dynamic lists */
.bot-lockout-list {
    margin-top: 10px;
}

.bot-lockout-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.bot-lockout-item input {
    flex: 1;
    max-width: 400px;
}

.bot-lockout-remove {
    background: #dc3232 !important;
    border-color: #dc3232 !important;
    color: #fff !important;
    padding: 4px 8px !important;
    min-width: 30px;
    height: 30px;
    line-height: 1;
    font-size: 16px;
    font-weight: bold;
}

.bot-lockout-remove:hover {
    background: #c92626 !important;
    border-color: #c92626 !important;
}

.bot-lockout-add {
    margin-top: 10px;
}

/* Buttons */
.bot-lockout-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bot-lockout-buttons .button {
    margin-right: 10px;
}

.bot-lockout-save {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: #fff !important;
}

.bot-lockout-save:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
}

.bot-lockout-test {
    background: #46b450 !important;
    border-color: #46b450 !important;
    color: #fff !important;
}

.bot-lockout-test:hover {
    background: #389a41 !important;
    border-color: #389a41 !important;
}

/* Status messages */
.bot-lockout-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.bot-lockout-loading {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.bot-lockout-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bot-lockout-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Test challenge section */
.bot-lockout-test-section {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.bot-lockout-test-section h3 {
    margin-top: 0;
    color: #666;
}

.bot-lockout-test-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.bot-lockout-test-fields .bot-lockout-field {
    margin-bottom: 0;
}

/* Tab navigation styles */
.bot-lockout-tabs {
    margin-bottom: 24px;
    border-bottom: 1px solid #ccd0d4;
    background: transparent;
}
.bot-lockout-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}
.bot-lockout-tab {
    display: inline-block;
    padding: 12px 28px;
    margin: 0;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    background: #f7f7f7;
    color: #23282d;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: background 0.2s, color 0.2s;
    position: relative;
    top: 1px;
}
.bot-lockout-tab:not(.active):hover {
    background: #e9e9e9;
    color: #0073aa;
}
.bot-lockout-tab.active {
    background: #fff;
    color: #0073aa;
    border-bottom: 1px solid #fff;
    z-index: 2;
}

/* Responsive design */
@media (max-width: 768px) {
    .bot-lockout-test-fields {
        grid-template-columns: 1fr;
    }
    
    .bot-lockout-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bot-lockout-item input {
        max-width: none;
    }
    
    .bot-lockout-remove {
        align-self: flex-end;
        width: fit-content;
    }
}

/* Loading states */
.bot-lockout-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility improvements */
.bot-lockout-field input:focus,
.bot-lockout-field textarea:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.bot-lockout-remove:focus {
    outline: 2px solid #dc3232;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bot-lockout-section {
        border-width: 2px;
    }
    
    .bot-lockout-field input,
    .bot-lockout-field textarea {
        border-width: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bot-lockout-section {
        background: #1e1e1e;
        border-color: #3c434a;
    }
    
    .bot-lockout-section h2,
    .bot-lockout-section h3,
    .bot-lockout-field label {
        color: #f0f0f1;
    }
    
    .bot-lockout-field input,
    .bot-lockout-field textarea {
        background: #2c3338;
        border-color: #3c434a;
        color: #f0f0f1;
    }
    
    .bot-lockout-field .description {
        color: #a0a5aa;
    }
} 