@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: "Sarabun", sans-serif !important;
 
}
 
a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}


.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

  

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    display: none;
}

#blazor-error-ui .dismiss {
    display: none;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

/*@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        display: block;
    }
}*/




.Sarabun {
    font-family: "Sarabun", sans-serif !important;
}



/*begin disconnect / crash overlay */

#components-reconnect-modal {
    display: none !important;
}

.app-status-overlay,
#blazor-error-ui {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: "Sarabun", "Segoe UI", sans-serif;
}

#blazor-error-ui[style*="display: block"],
#blazor-error-ui[style*="display: flex"],
.app-status-overlay.is-visible {
    display: flex !important;
}

.app-status-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    padding: 2.25rem 2.5rem 2rem;
    min-width: 300px;
    max-width: 440px;
    width: min(92vw, 440px);
    text-align: center;
}

.app-status-card-error {
    max-width: 560px;
    width: min(94vw, 560px);
    text-align: left;
}

.app-status-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.app-status-icon-reconnect {
    background: #e8f1ff;
    color: #2f80ed;
}

.app-status-icon-error {
    background: #fde8e8;
    color: #d92d20;
}

.app-status-spinner {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 auto 1.15rem;
    border: 0.22rem solid #e5e7eb;
    border-top-color: #2f80ed;
    border-radius: 50%;
    animation: app-status-spin 0.75s linear infinite;
}

.app-status-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.45rem;
    text-align: center;
}

.app-status-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.55;
    text-align: center;
}

.app-status-subtext {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #9ca3af;
    text-align: center;
}

.app-status-details {
    margin: 1rem 0 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
}

.app-status-details summary {
    cursor: pointer;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    user-select: none;
}

.app-status-details pre {
    margin: 0.7rem 0 0;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #1f2937;
    font-family: Consolas, "Courier New", monospace;
}

.app-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.app-status-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.app-status-btn-primary {
    background: #2f80ed;
    border-color: #2f80ed;
    color: #fff;
}

.app-status-btn:hover {
    opacity: 0.92;
}

@keyframes app-status-spin {
    to {
        transform: rotate(360deg);
    }
}

/*end disconnect / crash overlay*/