@font-face {
    font-family: 'Tektur';
    src: url('../fonts/Tektur_SemiCondensed-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tektur';
    src: url('../fonts/Tektur-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tektur';
    src: url('../fonts/Tektur-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Применение шрифта к элементам */
body {
    font-family: monospace;
}

.header h1 {
    font-family: 'Tektur', monospace;
    font-weight: 900; /* Black weight для заголовка */
}

.file-name, .file-size, .breadcrumbs {
    font-family: monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    padding: 15px;
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
}

.breadcrumbs a {
    color: #ecf0f1;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.panels {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.left-panel {
    flex: 1;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.right-panel {
    flex: 1;
    overflow: auto;
}

.file-list {
    padding: 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-item:hover {
    background-color: #f8f9fa;
}

.file-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #7f8c8d;
}

.file-icon.folder {
    color: #f39c12;
}

.file-icon.audio {
    color: #9b59b6;
}

.file-icon.image {
    color: #e74c3c;
}

.file-icon.video {
    color: #d35400;
}

.file-icon.text {
    color: #3498db;
}

.file-icon.pdf {
    color: #e74c3c;
}

.file-icon.archive {
    color: #f39c12;
}

.file-name {
    flex: 1;
}

.file-size {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-left: 10px;
}

.preview-container {
    padding: 20px;
}

.audio-preview, .video-preview {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

.image-preview {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.text-preview {
    white-space: pre-wrap;
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    max-height: 70vh;
}

.markdown-preview {
    padding: 15px;
    max-height: 70vh;
    overflow: auto;
}

.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.markdown-preview p {
    margin-bottom: 1em;
}

.markdown-preview code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.markdown-preview pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    overflow: auto;
}

.markdown-preview pre code {
    padding: 0;
    background: none;
}

.unsupported-file {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Стили в стиле Norton Commander */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: #00007F;
    color: #FFFFFF;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 2px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 5px;
    background-color: #00007F;
    color: #FFFF00;
    border: 1px solid #C0C0C0;
    margin-bottom: 1px;
}

.header h1 {
    font-size: 18px;
    font-weight: bold;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 2px 5px;
    background-color: #00007F;
    color: #FFFFFF;
    border: 1px solid #C0C0C0;
    margin-top: 1px;
    font-size: 14px;
}

.panels-container {
    display: flex;
    flex: 1;
    gap: 1px;
}

.file-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #C0C0C0;
    background-color: #00007F;
}

.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #C0C0C0;
    background-color: #00007F;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    padding: 2px 5px;
    background-color: #0000AA;
    color: #FFFFFF;
    font-weight: bold;
}

.panel.active .panel-header {
    background-color: #0055AA;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    background-color: #00007F;
    color: #FFFFFF;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1px 5px;
    cursor: pointer;
}

.file-item:hover, .file-item.selected {
    background-color: #0000AA;
    color: #FFFFFF;
}

.file-icon {
    width: 20px;
    margin-right: 5px;
    text-align: center;
}

.file-name {
    flex: 1;
}

.file-size {
    width: 80px;
    text-align: right;
    margin-left: 10px;
    color: #C0C0C0;
}

.preview-container {
    flex: 1;
    padding: 5px;
    overflow: auto;
    background-color: #00007F;
    color: #FFFFFF;
}

.text-preview {
    white-space: pre-wrap;
    font-family: monospace;
    background-color: #00007F;
    color: #FFFFFF;
    padding: 5px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #00007F;
}

::-webkit-scrollbar-thumb {
    background: #0000AA;
    border: 1px solid #C0C0C0;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: #FFFFFF;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}