.library-manager-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

/* Toolbar */
.library-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border-bottom: 1px solid #808080;
    min-height: 28px;
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
    padding: 2px 8px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 20px;
}

.toolbar-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}

.toolbar-btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0 0%, #dfdfdf 100%);
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: #808080;
    margin: 0 4px;
}

.folder-selector {
    background: white;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    min-width: 120px;
}

/* Main Content */
.library-main {
    flex: 1;
    display: flex;
    background: #c0c0c0;
    overflow: hidden;
}

/* Sidebar */
.library-sidebar {
    width: 250px;
    background: #c0c0c0;
    border-right: 1px solid #808080;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 8px 12px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border-bottom: 1px solid #808080;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 11px;
    font-weight: bold;
    color: #000;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    background: white;
    margin: 4px;
    border: 1px inset #c0c0c0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 0;
    margin-bottom: 1px;
}

.file-item:hover {
    background: #316ac5;
    color: white;
}

.file-item.selected {
    background: #316ac5;
    color: white;
}

.file-icon {
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.file-meta {
    font-size: 10px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-files {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Content Area */
.library-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #c0c0c0;
}

.content-header {
    padding: 8px 12px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border-bottom: 1px solid #808080;
    flex-shrink: 0;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-info-left {
    flex: 1;
}

.file-info-right {
    flex-shrink: 0;
    margin-left: 12px;
}

.file-info .file-name {
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.file-info .file-details {
    font-size: 10px;
    color: #666;
}

.content-body {
    flex: 1;
    padding: 4px;
    display: flex;
    flex-direction: column;
}

.file-editor {
    flex: 1;
    width: 100%;
    background: white;
    border: 1px inset #c0c0c0;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
    outline: none;
}

.file-editor:focus {
    outline: 1px dotted #000;
    outline-offset: -2px;
}

.file-editor[readonly] {
    background: #f0f0f0;
    color: #666;
}

.content-footer {
    flex-shrink: 0;
    border-top: 1px solid #808080;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 8px;
    background: #c0c0c0;
    font-size: 10px;
    min-height: 18px;
}

#status-text {
    color: #000;
}

#file-stats {
    color: #666;
}

/* Scrollbar styling */
.file-list::-webkit-scrollbar {
    width: 16px;
}

.file-list::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.file-list::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}

.file-editor::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.file-editor::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.file-editor::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
}

.file-editor::-webkit-scrollbar-corner {
    background: #c0c0c0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .library-sidebar {
        width: 200px;
    }
    
    .toolbar-group {
        gap: 2px;
    }
    
    .toolbar-btn {
        padding: 2px 4px;
        font-size: 10px;
    }
}/* Fi
le Actions */
.file-actions {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.file-item:hover .file-actions {
    display: flex;
}

.file-action-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 2px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
}

.file-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.delete-file-btn:hover {
    background: #ff4444;
    color: white;
}

.delete-btn {
    background: linear-gradient(to bottom, #ff6666 0%, #ff4444 100%);
    color: white;
}

.delete-btn:hover {
    background: linear-gradient(to bottom, #ff7777 0%, #ff5555 100%);
}

.delete-btn:active {
    background: linear-gradient(to bottom, #ff4444 0%, #ff6666 100%);
}

/* Context Menu */
.file-context-menu {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    min-width: 120px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
}

.context-menu-item {
    padding: 4px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: #316ac5;
    color: white;
}

.context-menu-item.delete-item:hover {
    background: #ff4444;
    color: white;
}

.context-menu-separator {
    height: 1px;
    background: #808080;
    margin: 2px 0;
}

/* Status Messages */
.status-success {
    color: #008000 !important;
}

.status-warning {
    color: #ff8800 !important;
}

.status-error {
    color: #ff0000 !important;
}

/* Enhanced File Item Layout */
.file-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 0;
    margin-bottom: 1px;
    position: relative;
}

.file-item .file-details {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}

/* Keyboard shortcuts hint */
.toolbar-btn[title]:after {
    content: attr(title);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffcc;
    border: 1px solid #000;
    padding: 2px 4px;
    font-size: 10px;
    white-space: nowrap;
    display: none;
    z-index: 1000;
}

.toolbar-btn:hover[title]:after {
    display: block;
}/* D
elete button in header */
.delete-btn-header {
    background: linear-gradient(to bottom, #ff6666 0%, #ff4444 100%);
    border: 1px outset #ff4444;
    color: white;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
}

.delete-btn-header:hover {
    background: linear-gradient(to bottom, #ff7777 0%, #ff5555 100%);
    border: 1px outset #ff5555;
}

.delete-btn-header:active {
    background: linear-gradient(to bottom, #ff4444 0%, #ff6666 100%);
    border: 1px inset #ff4444;
}

.delete-btn-header:focus {
    outline: 1px dotted #000;
    outline-offset: -2px;
}/
* New file button */
.new-file-btn {
    background: linear-gradient(to bottom, #66ff66 0%, #44dd44 100%);
    border: 1px outset #44dd44;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
}

.new-file-btn:hover {
    background: linear-gradient(to bottom, #77ff77 0%, #55ee55 100%);
    border: 1px outset #55ee55;
}

.new-file-btn:active {
    background: linear-gradient(to bottom, #44dd44 0%, #66ff66 100%);
    border: 1px inset #44dd44;
}