/* Custom font declaration */
@font-face {
    font-family: 'MyFont';
    src: url('../fonts/myfont.ttf') format('truetype');
    font-display: swap;
}

/* Apply custom font to entire page */
body {
    font-family: 'MyFont', 'Noto Sans JP', 'Segoe UI', system-ui, sans-serif;
}

/* Existing inline styles from template */
.log-table {
    margin-top: 30px;
}

.log-entry {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    background-color: #f8f9fa;
}

.log-input {
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 8px;
}

.log-output {
    color: #198754;
    padding-left: 15px;
    border-left: 3px solid #198754;
    white-space: normal;
    font-family: 'MyFont', 'Courier New', monospace;
}

/* Split layout styles */
.left-pane {
    padding-right: 15px;
}

.right-pane {
    padding-left: 15px;
    border-left: 1px solid #dee2e6;
}

.dictionary-section {
    position: sticky;
    top: 20px;
}

.dictionary-section label {
    font-weight: bold;
    color: #495057;
    margin-bottom: 8px;
}

/* Dictionary editor (contenteditable div) */
.dictionary-editor {
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.dictionary-editor:empty::before {
    content: attr(data-placeholder);
    color: #6c757d;
    white-space: pre-wrap;
}

/* Odd lines (source words) use custom font */
.dict-line-odd {
    font-family: 'MyFont', 'Courier New', monospace;
}

/* Even lines (translations) use default system font */
.dict-line-even {
    font-family: 'Noto Sans JP', 'Segoe UI', system-ui, sans-serif;
}

/* Translated text uses default system font */
.translated-text {
    font-family: 'Noto Sans JP', 'Segoe UI', system-ui, sans-serif;
}
