/**
 * ConvertyBot Admin Configuration Styles
 * Extracted from templates/admin/configuration.php for WordPress compliance
 */

/* Tab Navigation */
.nav-tab-wrapper {
    border-bottom: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.nav-tab {
    border: 1px solid #ccd0d4;
    border-bottom: none;
    background: #f1f1f1;
    color: #555;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
}

.nav-tab-active {
    background: #fff;
    color: #000;
    border-bottom: 1px solid #fff;
}

.tab-content {
    display: none;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-top: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Appearance Settings */
.appearance-settings-container {
    display: flex;
    gap: 30px;
}

.settings-form {
    flex: 1;
}

.chatbot-preview {
    flex: 0 0 300px;
}

.preview-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
}

.chatbot-widget-preview {
    max-width: 250px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

.chatbot-body {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
}

.bot-message {
    background: #f1f1f1;
    color: #333;
}

.chatbot-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.chat-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Status indicators */
.status-checking {
    color: #666;
}

.status-value.active {
    color: #46b450;
    font-weight: 500;
}

.status-value.inactive {
    color: #dc3232;
    font-weight: 500;
}

/* Notice styles */
.notice {
    border-left: 4px solid #00a0d2;
    background: #fff;
    padding: 8px 12px;
    margin: 10px 0;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}

.notice-success {
    border-left-color: #46b450;
}

.notice-error {
    border-left-color: #dc3232;
}

.notice-info {
    border-left-color: #00a0d2;
}

/* Preview dynamic gradient */
.chatbot-preview .chat-button {
    background: linear-gradient(135deg, var(--preview-primary, #667eea) 0%, var(--preview-accent, #764ba2) 100%);
}

.chatbot-preview .chatbot-header {
    background: linear-gradient(135deg, var(--preview-primary, #667eea) 0%, var(--preview-accent, #764ba2) 100%);
}
