/* Agent Configuration Modal Styles - Dark Theme */

.config-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: #1e293b;
}

.config-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #0f172a;
    border-radius: 8px;
    border-left: 4px solid #475569;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0 0 5px 0;
    color: #f1f5f9;
    font-size: 1.2em;
}

.section-description {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9em;
}

/* Preset Buttons */
.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preset-btn {
    padding: 15px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.preset-btn:hover {
    border-color: #64748b;
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.preset-btn strong {
    display: block;
    color: #f1f5f9;
    margin-bottom: 5px;
    font-size: 1em;
}

.preset-btn small {
    display: block;
    color: #94a3b8;
    font-size: 0.85em;
}

/* Configuration Grid */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.config-item {
    padding: 15px;
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
}

.config-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.config-group {
    margin-bottom: 15px;
}

.config-group label {
    display: block;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.config-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.3s;
}

.config-input:focus {
    outline: none;
    border-color: #64748b;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.95em;
}

/* Sampling Controls */
.sampling-control {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #334155;
}

.sampling-control label {
    display: block;
    font-size: 0.85em;
    color: #94a3b8;
    margin-bottom: 5px;
}

.sampling-control input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #334155;
    outline: none;
}

.sampling-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #64748b;
    cursor: pointer;
}

.sampling-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #64748b;
    cursor: pointer;
    border: none;
}

/* Interval Inputs */
.interval-input {
    width: 80px;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 4px;
    text-align: center;
}

/* Help Text */
.help-text {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 0.85em;
    font-style: italic;
}

/* Configuration Info */
.config-info {
    margin-top: 20px;
    padding: 15px;
    background: #1e293b;
    border-radius: 8px;
    border-left: 4px solid #64748b;
}

.info-item {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #cbd5e1;
}

.info-item strong {
    color: #94a3b8;
}

.info-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #334155;
    font-size: 0.9em;
    color: #cbd5e1;
}

.info-note strong {
    color: #fb923c;
}

/* Bulk Configuration Modal */
.selected-agents {
    margin-bottom: 20px;
    padding: 15px;
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid #334155;
}

.selected-agents h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #f1f5f9;
}

.selected-agents ul {
    margin: 0;
    padding-left: 20px;
    max-height: 150px;
    overflow-y: auto;
}

.selected-agents li {
    padding: 5px 0;
    color: #cbd5e1;
}

.preset-selection {
    margin-top: 20px;
}

.preset-selection h3 {
    margin: 0 0 15px 0;
    font-size: 1em;
    color: #f1f5f9;
}

.preset-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-option:hover {
    border-color: #64748b;
    background: #334155;
}

.preset-option input[type="radio"] {
    margin: 5px 15px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.preset-option label {
    cursor: pointer;
    flex: 1;
}

.preset-option label strong {
    display: block;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.preset-option label p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9em;
}

/* Configuration Status Badge */
.config-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.config-status.standard {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.config-status.minimal {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.config-status.troubleshooting {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.config-status.custom {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .config-modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .config-grid,
    .config-row {
        grid-template-columns: 1fr;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
}

/* Modal Overlay - Dark Theme */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 800px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #f1f5f9;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2em;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #334155;
    color: #cbd5e1;
}

.modal-body {
    padding: 25px;
    max-height: calc(90vh - 180px);
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #334155;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Button styles - matching your existing theme */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    background: #475569;
    border-color: #64748b;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}
