body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    background-color: #f4f4f9;
    color: #333;
    margin: 0 auto;
}

.app-container {
    display: flex;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #2c3e50;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 2;
}

.file-tree-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 300px;
    position: relative;
}

.file-tree-container h3 {
    margin-top: 0;
    color: #2c3e50;
}

.word-list-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.word-list {
    flex: 1;
}

.list-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100px;
}

textarea, input, button, select {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    width: 100%;
    resize: vertical;
    height: 180px;
}

input[type="number"] {
    width: 100px;
}

input[type="text"] {
    width: 100px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100px;
}

button:hover {
    background-color: #2980b9;
}

select {
    width: 100px;
}

#listName {
    width: 100px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.controls > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.training-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0;
}

.button-group {
    display: flex;
    gap: 10px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #ecf0f1;
    color: #2c3e50;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.color-block {
    width: 20px;
    height: 20px;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 10px;
}

#deleteList {
    background-color: #e74c3c;
}

#deleteList:hover {
    background-color: #c0392b;
}

#clearStats {
    margin: 0;
}

.file-tree ul {
    list-style: none;
    padding-left: 20px;
}

.file-tree li {
    margin: 5px 0;
}

.file-tree .folder {
    cursor: pointer;
    color: #2c3e50;
}

.file-tree .file {
    cursor: pointer;
    color: #3498db;
}

.file-tree .file:hover {
    text-decoration: underline;
}

.file-tree .folder::before {
    content: '📁 ';
}

.file-tree .file::before {
    content: '📄 ';
}

.file-tree-status {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    display: none;
}

#feedback {
    margin-left: 10px;
    font-size: 14px;
    vertical-align: middle;
}

#feedback .correct-word {
    color: #3498db;
    font-size: 16px;
    font-weight: bold;
}

#feedback .correct {
    color: #3498db;
    font-size: 16px;
    font-weight: bold;
}

#feedback .incorrect {
    color: red;
    font-size: 16px;
    font-weight: bold;
}

#feedback .missing {
    color: red;
    font-size: 16px;
    font-weight: bold;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}