/**
 * @file app/admin/styles/debug-panel.css
 * @brief Admin module for debug-panel.css
 * 
 * @version 
 *  - Major: 1
 *  - Minor: 1
 *  - Subversion: 0
 * 
 * @date 
 *  - Created: 2025-08-07 11:33:53
 *  - Modified: 2025-08-07 11:33:53
 * 
 * @author [core] Informationstechnologie
 * 
 * @copyright [core] Informationstechnologie, 2025
 */


/* Debug Panel Component Styles */

.debug-panel {
    padding: 20px;
}

/* Connection Info */
.connection-info {
    display: grid;
    gap: 30px;
}

.info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.info-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
}

.info-item code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.875em;
}

/* Rights Info */
.rights-info {
    padding: 20px;
}

.rights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.right-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Command Interface */
.command-interface {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.command-input-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.command-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.command-input-group input {
    flex: 1;
    font-family: monospace;
}

.command-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.command-history {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #e9ecef;
    border-color: #6c757d;
}

.history-item code {
    font-size: 0.875em;
}

/* Command Results */
.command-results {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-actions {
    display: flex;
    gap: 10px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.result-item {
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.result-command {
    font-weight: 600;
    color: #495057;
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875em;
    color: #6c757d;
}

.result-content {
    padding: 15px;
    margin: 0;
    font-size: 0.875em;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

.result-content.text-success {
    color: #28a745;
}

.result-content.text-danger {
    color: #dc3545;
}

/* Testing Tools */
.testing-tools {
    padding: 20px;
}

.test-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.test-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.test-input-group {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    align-items: center;
}

.test-input-group label {
    font-weight: 600;
    color: #6c757d;
}

.test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* System Monitoring */
.system-monitoring {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.stat-card h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
}

.stat-content {
    max-height: 300px;
    overflow-y: auto;
}

.stat-content pre {
    margin: 0;
    font-size: 0.875em;
}

.stat-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-content li {
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-content li:last-child {
    border-bottom: none;
}

/* Log Viewer */
.log-viewer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.log-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.log-controls select {
    min-width: 150px;
}

/* Animations */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .command-input-group {
        flex-direction: column;
    }
    
    .results-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .test-input-group {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}