/* /Pages/Add_Device.razor.rz.scp.css */
.exception-container[b-75ok100fbl] {
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    padding: 1rem;
    margin-top: 1rem;
    font-family: monospace;
}

.inner-exception[b-75ok100fbl] {
    margin-left: 2rem; /* 1 tab in */
    border-left: 2px solid #cc0000;
    padding-left: 1rem;
}

.inner-inner-exception[b-75ok100fbl] {
    margin-left: 4rem; /* 2 tabs in */
    border-left: 2px dashed #cc0000;
    padding-left: 1rem;
}

.config-password-wrapper[b-75ok100fbl] {
    display: flex;
    flex-direction: column;
    max-width: 320px;
    margin: 1rem auto;
    padding: 1rem;
    background: linear-gradient(145deg, #f5f5fa, #e0e0e8);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.config-label[b-75ok100fbl] {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}
.config-error[b-75ok100fbl]{
    color:red;
}
.config-input[b-75ok100fbl] {
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

    .config-input:focus[b-75ok100fbl] {
        outline: none;
        border-color: #6a5acd;
        box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.3);
    }

.config-help[b-75ok100fbl] {
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: #666;
}
.connection-string-container[b-75ok100fbl] {
    background-color: #f0f8ff;
    border: 1px solid #3399ff;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 500px;
    margin: 1rem auto;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.connection-string-title[b-75ok100fbl] {
    color: #005580;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.connection-string-textarea[b-75ok100fbl] {
    width: 100%;
    min-height: 100px;
    padding: 0.8rem;
    border: 1px solid #99ccff;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

    .connection-string-textarea:focus[b-75ok100fbl] {
        outline: none;
        border-color: #3399ff;
        box-shadow: 0 0 0 2px rgba(51, 153, 255, 0.3);
    }

.connection-string-button[b-75ok100fbl] {
    background-color: #3399ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

    .connection-string-button:hover[b-75ok100fbl] {
        background-color: #2677cc;
    }

.connection-string-output[b-75ok100fbl] {
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: #e6f7ff;
    border: 1px solid #99ccff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #003366;
    word-break: break-all;
}

.device-entry-container[b-75ok100fbl] {
    padding: 1rem;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.device-entry-label[b-75ok100fbl] {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.device-entry-input[b-75ok100fbl] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #aaa;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.device-entry-button[b-75ok100fbl] {
    padding: 0.5rem 1rem;
    background-color: #0078D7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .device-entry-button:hover[b-75ok100fbl] {
        background-color: #005ea6;
    }
.busy-overlay[b-75ok100fbl] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;/*keep it under dialog*/
}
.dialog-overlay[b-75ok100fbl] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-box[b-75ok100fbl] {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #3f51b5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 300px;
    text-align: center;
}

.dialog-prompt[b-75ok100fbl] {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.dialog-buttons[b-75ok100fbl] {
    display: flex;
    justify-content: space-around;
}

.dialog-button[b-75ok100fbl] {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

    .dialog-button.yes[b-75ok100fbl] {
        background-color: #4CAF50;
        color: white;
    }

    .dialog-button.no[b-75ok100fbl] {
        background-color: #f44336;
        color: white;
    }
/* /Pages/Device.razor.rz.scp.css */

/*
.devices-header {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.5rem;
}

.device-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 1rem auto;
}

.device-item {
    background-color: #eee;
    padding: 0.8rem;
    margin-bottom: 0.6rem;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .device-item:hover {
        background-color: #d4d4d4;
    }
    */
/* /Pages/index.razor.rz.scp.css */

.switch-label[b-l0clu706g9] {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--text-color, #333);
}
.switch-wrapper[b-l0clu706g9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

.greyed-out[b-l0clu706g9] {
    pointer-events: none; /* disables interaction */
    /*opacity: 0.5;*/
    filter: grayscale(100%) brightness(0.8);
}
.switch-track[b-l0clu706g9] {
    width: 60px;
    height: 120px;
    background-color: #555;
    border-radius: 30px;
    position: relative;
    transition: background-color 0.3s;
    cursor: pointer;
}

    .switch-track.on[b-l0clu706g9] {
        background-color: #4caf50;
    }

.switch-thumb[b-l0clu706g9] {
    width: 50px;
    height: 50px;
    background-color: #ccc;
    border-radius: 50%;
    position: absolute;
    left: 5px;
    transition: all 0.3s ease;
}

    .switch-thumb.off[b-l0clu706g9] {
        bottom: 5px;
        background-color: #333;
    }

    .switch-thumb.on[b-l0clu706g9] {
        top: 5px;
        background-color: #fff;
    }
/* /Pages/ManageDevices.razor.rz.scp.css */



/* Overlay coverage: rename + remove + connection string */
.rename-overlay[b-6nf80gkk4u],
.remove-confirm-overlay[b-6nf80gkk4u],
.connection-string-overlay[b-6nf80gkk4u] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    animation: fadeIn-b-6nf80gkk4u 0.3s ease-in-out;
}

/* Inner box styling */
.rename-box[b-6nf80gkk4u],
.remove-confirm-box[b-6nf80gkk4u],
.connection-string-box[b-6nf80gkk4u] {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    min-width: 300px;
    max-width: 600px;
    text-align: center;
    animation: slideUp-b-6nf80gkk4u 0.3s ease-in-out;
}

/* Connection string specific */
.connection-string-title[b-6nf80gkk4u] {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.connection-string-instructions[b-6nf80gkk4u] {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
}

.connection-string-textarea[b-6nf80gkk4u] {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    resize: vertical;
}

/* Generic overlay buttons */
.rename-box button[b-6nf80gkk4u],
.remove-confirm-box button[b-6nf80gkk4u],
.connection-string-box button[b-6nf80gkk4u] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    margin: 0.25rem;
}

    .rename-box button:hover[b-6nf80gkk4u],
    .remove-confirm-box button:hover[b-6nf80gkk4u],
    .connection-string-box button:hover[b-6nf80gkk4u] {
        background-color: #0056b3;
    }
.nice-parent button.copy-btn[b-6nf80gkk4u] {
    position: relative;
}

    /* Flash color on click */
    .nice-parent button.copy-btn:active[b-6nf80gkk4u] {
        background: #38a169; /* green flash */
    }

    /* Temporary "Copied!" overlay */
    .nice-parent button.copy-btn[b-6nf80gkk4u]::after {
        content: "Copied!";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        background: rgba(56,161,105,0.9);
        color: white;
        border-radius: inherit;
        opacity: 0;
        pointer-events: none;
    }

    .nice-parent button.copy-btn:focus[b-6nf80gkk4u]::after {
        animation: copiedFlash-b-6nf80gkk4u 1s ease-out forwards;
    }
/* Animations */
@keyframes copiedFlash-b-6nf80gkk4u {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


@keyframes fadeIn-b-6nf80gkk4u {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideUp-b-6nf80gkk4u {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* /Shared/Connecting.razor.rz.scp.css */
.myblock-container[b-7cdju99ffa] {
    position: relative;
    display: inline-block;
}

.content-wrapper[b-7cdju99ffa] {
    transition: opacity 0.3s ease;
}

    .content-wrapper.blocked[b-7cdju99ffa] {
        opacity: 0.4;
        pointer-events: none;
    }
.spinner[b-7cdju99ffa] {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #0078D7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}
.overlay[b-7cdju99ffa] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 10;
}

.spinner-message[b-7cdju99ffa] {
    font-weight: bold;
    font-family: monospace;
    animation: fadeIn-b-7cdju99ffa 0.5s ease-in-out;
}

@keyframes fadeIn-b-7cdju99ffa {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* /Shared/Loading.razor.rz.scp.css */
.loading-container[b-yeoj20pd4m] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: sans-serif;
    color: #444;
}

.spinner[b-yeoj20pd4m] {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #0078D7;
    border-radius: 50%;
    animation: spin-b-yeoj20pd4m 1s linear infinite;
    margin-bottom: 0.5rem;
}

@keyframes spin-b-yeoj20pd4m {
    to {
        transform: rotate(360deg);
    }
}

.loading-text[b-yeoj20pd4m] {
    font-size: 1.2rem;
    animation: pulse-b-yeoj20pd4m 1.5s ease-in-out infinite;
}

@keyframes pulse-b-yeoj20pd4m {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-bsmo6zc0pj] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-bsmo6zc0pj] {
    flex: 1;
}

.sidebar[b-bsmo6zc0pj] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-bsmo6zc0pj] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-bsmo6zc0pj]  a, .top-row[b-bsmo6zc0pj]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-bsmo6zc0pj]  a:hover, .top-row[b-bsmo6zc0pj]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-bsmo6zc0pj]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }
















.auth-center[b-bsmo6zc0pj] {
    min-height: 100vh; /* full viewport height */
    width: 100%;
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    padding: 1.5rem;
}

.auth-card[b-bsmo6zc0pj] {
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
    max-width: 360px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.auth-note[b-bsmo6zc0pj] {
    font-size: 1rem;
    line-height: 1.45;
    color: #333333;
    margin: 0; /* gap handles spacing now */
}

.auth-btn[b-bsmo6zc0pj] {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 0.75rem;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .auth-btn:hover[b-bsmo6zc0pj] {
        background: #1d4ed8;
        transform: translateY(-1px);
    }














@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-bsmo6zc0pj] {
        display: none;
    }

    .top-row.auth[b-bsmo6zc0pj] {
        justify-content: space-between;
    }

    .top-row[b-bsmo6zc0pj]  a, .top-row[b-bsmo6zc0pj]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-bsmo6zc0pj] {
        flex-direction: row;
    }

    .sidebar[b-bsmo6zc0pj] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-bsmo6zc0pj] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-bsmo6zc0pj]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row[b-bsmo6zc0pj], article[b-bsmo6zc0pj] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
