/**
 * Console Logger Viewer Styles
 * Styling for the console log viewer interface
 */

/* General styles */
.console-logs-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.console-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.console-logs-header h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

/* Filter controls */
.console-logs-filters {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Table styles */
.console-logs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.console-logs-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f0f0f0;
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.console-logs-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.console-logs-table tr:hover {
    background-color: #f7f7f7;
}

/* Log level indicators */
.log-level {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.log-level-log {
    background-color: #e3f2fd;
    color: #1976d2;
}

.log-level-info {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.log-level-warn {
    background-color: #fff8e1;
    color: #ff8f00;
}

.log-level-error {
    background-color: #ffebee;
    color: #c62828;
}

.log-level-debug {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Message content */
.message-content {
    word-break: break-word;
    max-width: 400px;
}

.stack-trace {
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 5px;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

/* Pagination */
.console-logs-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-info {
    color: #666;
}

.pagination-controls {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
    background-color: #1976d2;
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Actions */
.row-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 3px 8px;
    font-size: 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.action-btn:hover {
    background-color: #e0e0e0;
}

.action-btn-delete {
    color: #d32f2f;
}

.action-btn-view {
    color: #1976d2;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 800px;
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .console-logs-table {
        font-size: 12px;
    }
    
    .console-logs-table th,
    .console-logs-table td {
        padding: 8px 10px;
    }
    
    .message-content {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .console-logs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .console-logs-table {
        display: block;
        overflow-x: auto;
    }
} 