/*
 * Copyright 2015-2025 Endre Stølsvik
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:root {
    --matsec-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.matsec-container {
    font-family: var(--matsec-font);
    font-weight: 400;
    font-size: 85%;
    line-height: 1.35;
    margin: 4px 4px 20px 4px;
    padding: 10px;
    color: #212529;
    background-color: #f4f4f4;
}
.matsec-container h1, .matsec-container h2, .matsec-container h3, .matsec-container h4 {
    line-height: 1.2;
    display: inline-block;
    margin: 0.15em 0 0.3em 0;
}
.matsec-container h1 {
    font-size: 1.8em;
    font-weight: 400;
}
.matsec-container h2 {
    font-size: 1.5em;
    font-weight: 400;
}

.matsec-float-right {
    float: right;
}

.matsec-log-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    margin: 2px 0;
}
.matsec-log-table th, .matsec-log-table td {
    border: 1px solid #ddd;
}
.matsec-log-table th {
    background-color: #e0e0e0;
    text-align: left;
    padding: 8px 5px;
}
.matsec-log-table td {
    text-align: left;
    padding: 4px 5px;
}
.matsec-log-row,
.matsec-log-row-throwable {
    transition: background-color 0.4s ease;
}
.matsec-log-row:hover,
.matsec-log-row:hover + .matsec-log-row-throwable,
.matsec-log-row:has(+ .matsec-log-row-throwable:hover),
.matsec-log-row-throwable:hover {
    background-color: #f8b864;
    transition: background-color 0s;
}
.matsec-row-unacknowledged {
    background-color: #ff713f60;
}
.matsec-row-acknowledged {
    background-color: #30ff4360;
}
.matsec-log-table pre {
    margin: 0 0 5px 10px;
    padding: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}
.matsec-hidden {
    display: none;
}
/* The different columns in table */
.matsec-timestamp, .matsec-category, .matsec-level, .matsec-acknowledged {
    vertical-align: middle;
    white-space: nowrap;
    width: 1%;
}
.matsec-message {
    overflow-wrap: break-word;
    width: 100%;
}

.matsec-button {
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
}
.matsec-refresh-button {
    background-color: #00ce0f;
    color: white;
    margin: 0 0 0 50px;
    vertical-align: text-bottom;
}
.matsec-acknowledge-button {
}
.matsec-toggle-button {
    margin: 0 10px 5px 20px;
    border-radius: 5px;
}
.matsec-button:hover {
    filter: brightness(0.9);
}
.matsec-button:disabled {
    filter: opacity(0.3);
}

.matsec-updating-message {
    font-size: 1.2em;
    vertical-align: super;
    display: inline-block;
    margin: 0 0 0 1em;
}

/* two columns for text */
.matsec-column-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.35em 50px;
    align-items: flex-start;
    margin: 0 0 0 10px
}
.matsec-column {
    flex: 0 1 auto;
    min-width: 300px;
}

/* Callouts */
.matsec-success-bubble {
    font-family: var(--matsec-font);
    font-weight: 400;
    font-size: 150%;
    line-height: 1.35;

    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    text-align: center;
    z-index: 1000;
}

.matsec-error-lightbox {
    font-family: var(--matsec-font);
    font-weight: 400;
    font-size: 150%;
    line-height: 1.35;

    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
}

.matsec-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.matsec-error-lightbox h2 {
    color: #D32F2F;
}
