html, body, #app {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "acumin-pro", sans-serif;
    background-color: #2d3748;
    color: #feffe9;
}

.main-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #2d3748;
}

/* Sidebar Styles */
.sidebar-container {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background-color: #1a202c;
    transition: width 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    display: flex;
}

.sidebar-container.expanded {
    width: 280px;
}

.sidebar-container.collapsed {
    width: 48px;
}

.sidebar-toggle {
    position: absolute;
    right: -16px;
    top: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3b4557;
    border: none;
    color: #feffe9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
    z-index: 1001;
}

.sidebar-toggle:hover {
    background-color: #4a5568;
}

.sidebar-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #374151;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f7fafc;
}

.sidebar-tree {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #cbd5e0;
    position: relative;
}

.tree-item:hover {
    background-color: #374151;
}

.tree-item.selected {
    background-color: #4a5568;
    color: #f7fafc;
}

.tree-item .item-name {
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-item .item-delete {
    opacity: 0;
    background: none;
    border: none;
    color: #fc8181;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.tree-item:hover .item-delete {
    opacity: 1;
}

.tree-item .item-delete:hover {
    color: #f56565;
}

.empty-message {
    padding: 20px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* FluentUI Card Overrides */
fluent-card {
    background-color: #3b4557 !important;
    border: 1px solid #4a5568 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Legacy Jyro Styles */
.jyro-editor {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #4a5568;
    border-radius: 4px;
    padding: 10px;
    background-color: #3b4557;
    color: #feffe9;
}

.jyro-output {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 14px;
    line-height: 1.5;
    background-color: #3b4557;
    color: #feffe9;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.jyro-message-error {
    color: #fc8181;
    font-weight: bold;
}

.jyro-message-warning {
    color: #fbbf24;
}

.jyro-message-info {
    color: #60a5fa;
}

/* Monaco Editor Styles */
.jyro-monaco-editor {
    height: 100%;
    width: 100%;
    border: 1px solid #4a5568;
    border-radius: 6px;
    overflow: hidden;
}

.monaco-editor-container {
    height: 100%;
}

#blazor-error-ui {
    display: none !important;
}