@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.bundle.scp.css';

/* _content/BlazorApp1/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-nz1yiwl0um] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

main[b-nz1yiwl0um] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 250px !important;
    padding-top: 3.5rem !important;
    height: 100vh !important;
    min-width: calc(100vw - 250px) !important;
    transition: margin-left 0.3s ease-in-out, min-width 0.3s ease-in-out;
}

.sidebar[b-nz1yiwl0um] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 250px !important;
    height: 100vh !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    transition: transform 0.3s ease-in-out;
}

.top-row[b-nz1yiwl0um] {
    height: 3.5rem;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    position: fixed !important;
    top: 0 !important;
    left: 250px !important;
    right: 0 !important;
    z-index: 9998 !important;
    width: calc(100vw - 250px) !important;
    transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
}

    .top-row[b-nz1yiwl0um]  a, .top-row[b-nz1yiwl0um]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-nz1yiwl0um]  a:hover, .top-row[b-nz1yiwl0um]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-nz1yiwl0um]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Navigation toggle styles */
.nav-toggle-btn[b-nz1yiwl0um] {
    margin-right: auto;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
}

.nav-toggle-btn:hover[b-nz1yiwl0um] {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Theme toggle styles */
.theme-toggle-btn[b-nz1yiwl0um] {
    font-size: 1.1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.theme-toggle-btn i[b-nz1yiwl0um] {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i[b-nz1yiwl0um] {
    transform: scale(1.1);
}

/* Hidden sidebar styles */
.sidebar-hidden[b-nz1yiwl0um] {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

/* Full width main when sidebar is hidden */
.main-full[b-nz1yiwl0um] {
    margin-left: 0 !important;
    min-width: 100vw !important;
}

.main-full .top-row[b-nz1yiwl0um] {
    left: 0 !important;
    width: 100vw !important;
}

@media (max-width: 640.98px) {
    .page[b-nz1yiwl0um] {
        flex-direction: column;
    }

    .sidebar[b-nz1yiwl0um] {
        width: 100%;
        height: auto;
        position: relative;
        order: 2;
    }

    main[b-nz1yiwl0um] {
        margin-left: 0;
        padding-top: 3.5rem;
        order: 1;
    }

    .top-row[b-nz1yiwl0um] {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        justify-content: space-between;
        z-index: 999;
    }

    .top-row[b-nz1yiwl0um]  a, .top-row[b-nz1yiwl0um]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-nz1yiwl0um] {
        flex-direction: row;
    }

    .sidebar[b-nz1yiwl0um] {
        width: 250px;
        height: 100vh;
        position: fixed !important;
        top: 0;
        left: 0;
        z-index: 1001;
        overflow-y: auto;
    }

    .top-row[b-nz1yiwl0um] {
        position: fixed !important;
        top: 0;
        left: 250px;
        right: 0;
        z-index: 1000;
        width: calc(100vw - 250px);
    }

    main[b-nz1yiwl0um] {
        margin-left: 250px;
        padding-top: 3.5rem;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-width: calc(100vw - 250px);
    }

    .top-row.auth[b-nz1yiwl0um]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }
}

article[b-nz1yiwl0um] {
    flex: 1 !important;
    overflow: auto !important;
    padding: 1rem 2rem 1rem 2rem !important;
    min-width: 0 !important;
}

#blazor-error-ui[b-nz1yiwl0um] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-nz1yiwl0um] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/BlazorApp1/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-zjo6z1fhij] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

:global([data-bs-theme="light"]) .navbar-toggler[b-zjo6z1fhij] {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(0, 0, 0, 0.1);
}

.navbar-toggler:checked[b-zjo6z1fhij] {
    background-color: rgba(255, 255, 255, 0.2);
}

:global([data-bs-theme="light"]) .navbar-toggler:checked[b-zjo6z1fhij] {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Navbar brand text color */
.navbar-brand[b-zjo6z1fhij] {
    color: #ffffff !important;
}

:global([data-bs-theme="light"]) .navbar-brand[b-zjo6z1fhij] {
    color: var(--bs-dark) !important;
}

.bi[b-zjo6z1fhij] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-zjo6z1fhij] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

:global([data-bs-theme="light"]) .bi-house-door-fill-nav-menu[b-zjo6z1fhij] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23212529' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.nav-item[b-zjo6z1fhij] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-zjo6z1fhij] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-zjo6z1fhij] {
        padding-bottom: 1rem;
    }

    .nav-item[b-zjo6z1fhij]  .nav-link {
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-zjo6z1fhij]  a.active {
    background-color: rgba(255,255,255,0.2);
}

:global([data-bs-theme="light"]) .nav-item[b-zjo6z1fhij]  a.active {
    background-color: rgba(0,0,0,0.1);
}

.nav-item[b-zjo6z1fhij]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

:global([data-bs-theme="light"]) .nav-item[b-zjo6z1fhij]  .nav-link:hover {
    background-color: rgba(0,0,0,0.05);
}

.nav-scrollable[b-zjo6z1fhij] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-zjo6z1fhij] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-zjo6z1fhij] {
        display: none;
    }

    .nav-scrollable[b-zjo6z1fhij] {
        display: block !important;
        height: calc(100vh - 3.5rem) !important;
        overflow-y: auto !important;
        position: relative !important;
    }
}
/* _content/BlazorApp1/Components/Pages/SchematicsPages/Schematics.razor.rz.scp.css */
/* Port Visualization Styles */

.port-column[b-uvsoccze1c] {
    padding: 2px 0;
}

.port-label[b-uvsoccze1c] {
    padding: 2px 4px;
    margin: 1px 0;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    cursor: default;
}

.port-label:hover[b-uvsoccze1c] {
    background-color: rgba(0, 0, 0, 0.1);
}

.input-port[b-uvsoccze1c] {
    margin-left: 0;
    padding-left: 4px;
}

.output-port[b-uvsoccze1c] {
    margin-right: 0;
    padding-right: 4px;
}

/* Device card adjustments for port layout */
.device-card[b-uvsoccze1c] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.device-card .card-body[b-uvsoccze1c] {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.device-info[b-uvsoccze1c] {
    min-width: 40px;
    overflow: hidden;
}

.device-info > div[b-uvsoccze1c] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ensure grid-stack-item-content fills the space */
[b-uvsoccze1c] .grid-stack-item-content {
    height: 100%;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .port-label[b-uvsoccze1c] {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .port-label:hover[b-uvsoccze1c] {
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Port type indicator colors - fallback for inline styles */
.port-label[data-port-type="HDMI"][b-uvsoccze1c] {
    border-color: #e74c3c !important;
}

.port-label[data-port-type="USB"][b-uvsoccze1c] {
    border-color: #3498db !important;
}

.port-label[data-port-type="Ethernet"][b-uvsoccze1c] {
    border-color: #2ecc71 !important;
}

/* Multi-row device cards */
.grid-stack-item[gs-h="2"] .card-body[b-uvsoccze1c] {
    padding: 4px !important;
}

.grid-stack-item[gs-h="3"] .card-body[b-uvsoccze1c],
.grid-stack-item[gs-h="4"] .card-body[b-uvsoccze1c] {
    padding: 6px !important;
}

/* Connection mode styling preserved */
.grid-stack-item.connection-mode[b-uvsoccze1c] {
    cursor: crosshair;
}

.grid-stack-item.connection-mode:hover[b-uvsoccze1c] {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.grid-stack-item.selected[b-uvsoccze1c] {
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
}

/* Port selection in wire mode */
.port-label.port-clickable[b-uvsoccze1c] {
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 3px;
}

.port-label.port-clickable:hover[b-uvsoccze1c] {
    background-color: rgba(0, 123, 255, 0.25);
    transform: scale(1.08);
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}

.port-label.port-selected[b-uvsoccze1c] {
    background-color: #ffc107 !important;
    color: #000 !important;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
    border-radius: 4px;
    z-index: 10;
    position: relative;
}

.port-label.port-selected span[b-uvsoccze1c] {
    color: #000 !important;
}

/* Pulsing animation for selected port */
@keyframes port-pulse-b-uvsoccze1c {
    0% { box-shadow: 0 0 8px rgba(255, 193, 7, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 16px rgba(255, 193, 7, 1), 0 2px 4px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: 0 0 8px rgba(255, 193, 7, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3); }
}

.port-label.port-selected[b-uvsoccze1c] {
    animation: port-pulse-b-uvsoccze1c 1.5s ease-in-out infinite;
}

/* Dark mode port selection */
@media (prefers-color-scheme: dark) {
    .port-label.port-clickable:hover[b-uvsoccze1c] {
        background-color: rgba(0, 123, 255, 0.35);
    }

    .port-label.port-selected[b-uvsoccze1c] {
        background-color: #ffc107 !important;
        color: #000 !important;
    }
}
