/* Settings & Monitoring Panel */
.settings-monitoring-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 500px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-monitoring-panel.hidden {
    display: none;
}

.settings-monitoring-panel .panel-header {
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.settings-monitoring-panel .panel-header h3 {
    margin: 0;
    font-size: 18px;
}

.settings-monitoring-panel .close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.settings-monitoring-panel .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Tabs */
.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active {
    color: #667eea;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow-y: auto;
}

.tab-panel {
    display: none;
    padding: 20px;
}

.tab-panel.active {
    display: block;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.form-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.form-section label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-section input[type="number"],
.form-section select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 5px;
}

.form-section input[type="number"]:focus,
.form-section select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#apply-settings-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.status-message {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

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

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

/* Monitoring Controls */
.monitoring-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
}

/* Monitoring Data Display */
.monitoring-data {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.monitoring-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.monitoring-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.monitoring-section h5 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.monitoring-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.monitoring-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.monitoring-table tr:last-child {
    border-bottom: none;
}

.monitoring-table td,
.monitoring-table th {
    padding: 8px 0;
    text-align: left;
}

.monitoring-table td:first-child,
.monitoring-table th:first-child {
    font-weight: 600;
    color: #666;
    width: 40%;
}

.monitoring-table td:last-child {
    color: #333;
}

.monitoring-table th {
    background: #667eea;
    color: white;
    padding: 10px 8px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-monitoring-panel {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}
