/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-gs0bi0ihb8] {
    position: relative;
    display: flex;
    flex-direction: row;
}

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

.sidebar[b-gs0bi0ihb8] {
    background: #f8f9fa !important;
    border-right: 1px solid #e9ecef;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: width 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.expanded[b-gs0bi0ihb8] {
    width: 250px;
}

.sidebar.collapsed[b-gs0bi0ihb8] {
    width: 64px;
}

.top-row[b-gs0bi0ihb8] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.sidebar-header[b-gs0bi0ihb8] {
    display: flex;
    flex-direction: column;
}

.sidebar-toggle[b-gs0bi0ihb8] {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-toggle[b-gs0bi0ihb8]  .rz-button {
    width: 100%;
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle[b-gs0bi0ihb8]  .rz-button:hover {
    background: #f8f9fa !important;
    border-color: #adb5bd !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar-content[b-gs0bi0ihb8] {
    padding: 0.5rem 0;
}

/* 覆盖Radzen组件样式 - 浅色主题 */
.sidebar[b-gs0bi0ihb8]  .rz-panel-menu {
    background: transparent !important;
    border: none !important;
}

.sidebar[b-gs0bi0ihb8]  .rz-panel-menu-item {
    background: transparent !important;
    color: #495057 !important;
    border: none !important;
    margin: 2px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar[b-gs0bi0ihb8]  .rz-panel-menu-item:hover {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.sidebar[b-gs0bi0ihb8]  .rz-panel-menu-item.rz-state-active,
.sidebar[b-gs0bi0ihb8]  .rz-panel-menu-item[aria-current="page"] {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    font-weight: 500;
}

.sidebar[b-gs0bi0ihb8]  .rz-panel-menu-item-text {
    color: inherit !important;
    font-size: 14px;
    font-weight: inherit;
}

.sidebar[b-gs0bi0ihb8]  .rz-panel-menu-item-icon {
    color: inherit !important;
    font-size: 18px;
    margin-right: 12px;
}

/* 折叠状态下的图标样式 */
.sidebar.collapsed[b-gs0bi0ihb8]  .rz-panel-menu-item {
    justify-content: center;
    padding: 12px 8px;
}

.sidebar.collapsed[b-gs0bi0ihb8]  .rz-panel-menu-item-text {
    display: none;
}

.sidebar.collapsed[b-gs0bi0ihb8]  .rz-panel-menu-item-icon {
    margin-right: 0;
    font-size: 20px;
}

@media (max-width: 640.98px) {
    .top-row[b-gs0bi0ihb8]  a, .top-row[b-gs0bi0ihb8]  .btn-link {
        margin-left: 0;
    }
    
    .page[b-gs0bi0ihb8] {
        flex-direction: column;
    }
    
    .sidebar[b-gs0bi0ihb8] {
        height: auto;
        position: relative;
    }
}

@media (min-width: 641px) {
    .top-row[b-gs0bi0ihb8] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

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

    .top-row[b-gs0bi0ihb8], article[b-gs0bi0ihb8] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Pages/Favorites.razor.rz.scp.css */
.favorites-grid[b-tmk4ygxh1h] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.favorite-item[b-tmk4ygxh1h] {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.favorite-item:hover[b-tmk4ygxh1h] {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.favorite-header[b-tmk4ygxh1h] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.favorite-header h5[b-tmk4ygxh1h] {
    margin: 0;
    color: #333;
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
}

.favorite-description[b-tmk4ygxh1h] {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.favorite-meta[b-tmk4ygxh1h] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.favorite-date[b-tmk4ygxh1h] {
    color: #888;
    font-size: 0.8rem;
}

/* 搜索框样式调整 */
[b-tmk4ygxh1h] .rz-textbox {
    border: 1px solid #ddd;
    border-radius: 4px;
}

[b-tmk4ygxh1h] .rz-textbox:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .favorites-grid[b-tmk4ygxh1h] {
        grid-template-columns: 1fr;
    }
    
    .favorite-item[b-tmk4ygxh1h] {
        padding: 1rem;
    }
    
    .favorite-header[b-tmk4ygxh1h] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .favorite-meta[b-tmk4ygxh1h] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* /Pages/Feed.razor.rz.scp.css */
