@import '_content/Blazored.Modal/Blazored.Modal.bundle.scp.css';
@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-gq8u62az5i] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-gq8u62az5i] {
    flex: 1;
}

.sidebar[b-gq8u62az5i] {
    background-color: rgb(50, 50, 50); /* #323232 */
}

.top-row[b-gq8u62az5i] {
    background-color: #34495e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: flex-end;
    height: auto;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

    /* Legacy styles - now handled by .action-btn */

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-gq8u62az5i] {
        display: none;
    }

    .top-row.auth[b-gq8u62az5i] {
        justify-content: space-between;
    }
}

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

    .sidebar[b-gq8u62az5i] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-gq8u62az5i] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    /* Legacy first-child rule no longer needed */

    .top-row[b-gq8u62az5i], article[b-gq8u62az5i] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* User Info Simple */
.user-info-simple[b-gq8u62az5i] {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    color: #f8f9fa !important;
}

.info-item[b-gq8u62az5i] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f8f9fa !important;
}

.info-item .oi[b-gq8u62az5i] {
    font-size: 0.9rem;
    color: #74b9ff !important;
}

.info-item strong[b-gq8u62az5i] {
    font-weight: 700;
    color: #f8f9fa !important;
    font-size: 0.9rem;
}

.info-divider[b-gq8u62az5i] {
    color: #dee2e6 !important;
    font-weight: 400;
    margin: 0 0.3rem;
    font-size: 1rem;
}

/* Action Buttons */
.action-buttons[b-gq8u62az5i] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.action-btn[b-gq8u62az5i] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(52, 73, 94, 0.8);
    border: 1px solid #5d6d7e;
    border-radius: 4px;
    color: #f8f9fa !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn:hover[b-gq8u62az5i] {
    background-color: rgba(93, 109, 126, 0.9);
    border-color: #85929e;
    color: #f8f9fa !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.logout-btn:hover[b-gq8u62az5i] {
    background-color: rgba(231, 76, 60, 0.8);
    border-color: #e74c3c;
    color: #f8f9fa !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-info-simple[b-gq8u62az5i] {
        gap: 0.5rem;
        font-size: 0.8rem;
        margin-right: 1rem;
    }
    
    .info-divider[b-gq8u62az5i] {
        display: none;
    }
    
    .action-btn[b-gq8u62az5i] {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .user-info-simple[b-gq8u62az5i] {
        gap: 0.3rem;
        font-size: 0.75rem;
        margin-right: 0.5rem;
    }
    
    .action-btn span:not(.oi)[b-gq8u62az5i] {
        display: none;
    }
    
    .action-btn[b-gq8u62az5i] {
        padding: 0.4rem;
        min-width: 2rem;
        justify-content: center;
    }
}

.logout-btn[b-gq8u62az5i] {
    background-color: transparent;
    border: 1px solid #a0a0a0;
    color: #a0a0a0;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* 移除連結的底線 */
}

.logout-btn:hover[b-gq8u62az5i] {
    background-color: #f0f0f0;
    color: #808080;
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-8bd4v9yhto] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-8bd4v9yhto] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-8bd4v9yhto] {
    font-size: 1.1rem;
}

.oi[b-8bd4v9yhto] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

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

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

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

    .nav-item[b-8bd4v9yhto]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-8bd4v9yhto]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-8bd4v9yhto]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

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

    .collapse[b-8bd4v9yhto] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
