body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}

.env {
    color: #c62828;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.filters {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.filter-item select,
.filter-item input[type="text"],
.filter-item input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #333;
}

.date-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-group input[type="date"] {
    flex: 1;
}

.date-range-group span {
    color: #666;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.filter-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.filter-buttons button.reset {
    background-color: #f44336;
    color: white;
}

.filter-buttons button.apply {
    background-color: #1565c0;
    color: white;
}

.filter-buttons button:hover {
    opacity: 0.9;
}

.logs-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.log-entry {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-family: monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.log-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.log-level {
    display: inline-block;
    width: 80px;
    text-align: center;
    border-radius: 4px;
    padding: 2px 5px;
    font-weight: bold;
    flex-shrink: 0;
}

.log-timestamp {
    flex: 1;
    min-width: 150px;
    color: #666;
}

.log-function {
    color: #666;
    font-style: italic;
}

.log-message {
    margin-top: 5px;
    line-height: 1.5;
}

.log-raw {
    margin-top: 10px;
    color: #666;
    font-size: 0.8em;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.error {
    background-color: #ffebee;
    color: #c62828;
}

.warn {
    background-color: #fff3e0;
    color: #ef6c00;
}

.info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.debug {
    background-color: #f0f4c3;
    color: #827717;
}

.verbose {
    background-color: #f5f5f5;
    color: #616161;
}

@media (max-width: 768px) {
    .filter-item {
        min-width: 100%;
    }

    .date-range-group {
        flex-direction: column;
        gap: 5px;
    }

    .date-range-group span {
        display: none; /* Hide "to" on small screens */
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-buttons button {
        width: 100%;
    }
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
}

/* Switch Toggle Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

