/* Admin Settings Page Styles */

.aichat-settings-wrap {
    margin: 20px 20px 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aichat-settings-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.aichat-settings-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.aichat-tabs-container {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 0 30px;
    overflow-x: auto;
}

.aichat-tab {
    padding: 16px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.aichat-tab:hover {
    color: #2563eb;
}

.aichat-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.aichat-tab-content {
    display: none;
    padding: 30px;
}

.aichat-tab-content.active {
    display: block;
}

.aichat-settings-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.aichat-settings-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.aichat-settings-section h2 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.aichat-color-group {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.aichat-color-group h3 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.aichat-form-group {
    margin-bottom: 20px;
}

.aichat-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.aichat-form-group input[type="text"],
.aichat-form-group input[type="password"],
.aichat-form-group input[type="email"],
.aichat-form-group input[type="url"],
.aichat-form-group textarea,
.aichat-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.aichat-form-group input[type="color"] {
    width: 80px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
}

.aichat-form-group input[type="number"] {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.aichat-form-group .description {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

.aichat-form-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.button-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    padding: 10px 24px !important;
    height: auto !important;
}

.button-primary:hover {
    background: #1d4ed8 !important;
}

.aichat-preview-box {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.aichat-preview-box img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 782px) {
    .aichat-settings-row {
        grid-template-columns: 1fr;
    }

    .aichat-tabs-container {
        padding: 0 16px;
    }

    .aichat-tab {
        padding: 12px 16px;
        font-size: 13px;
    }

    .aichat-tab-content {
        padding: 20px 16px;
    }
}
