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

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: #2a2a2a;
    min-height: 100vh;
    padding: 5px;
    color: #e0e0e0;
}

.container {
    max-width: 100%;
    margin: 0;
}

header {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 5px;
    padding: 5px;
}

header h1 {
    font-size: 1.2rem;
    margin-bottom: 3px;
    font-weight: normal;
}

.version {
    font-size: 0.75rem;
    color: #777;
    font-weight: normal;
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
}

.drop-zone {
    background: #3a3a3a;
    border: 2px dashed #666;
    border-radius: 3px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.drop-zone:hover {
    border-color: #888;
    background: #404040;
}

.drop-zone.drag-over {
    border-color: #999;
    background: #454545;
    border-style: solid;
}

.drop-zone-content {
    pointer-events: none;
}

.drop-icon {
    width: 40px;
    height: 40px;
    color: #888;
    margin-bottom: 10px;
}

.drop-text {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 5px;
    font-weight: normal;
}

.drop-hint {
    color: #777;
    font-size: 0.8rem;
}

.tree-container {
    background: #333;
    border-radius: 3px;
    padding: 5px;
    border: 1px solid #444;
}

.tree-container.hidden {
    display: none;
}

.tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}

.tree-header h2 {
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: normal;
}

.clear-btn {
    background: #555;
    color: #e0e0e0;
    border: 1px solid #666;
    padding: 3px 8px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: normal;
    transition: all 0.2s ease;
    font-family: 'Courier New', 'Consolas', monospace;
}

.clear-btn:hover {
    background: #666;
}

.tree-view {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.tree-item {
    padding: 1px 0;
    cursor: pointer;
    transition: background 0.1s ease;
    border-radius: 0;
    padding-left: 3px;
}

.tree-item:hover {
    background: #3a3a3a;
}

.tree-item-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tree-icon {
    font-size: 14px;
    min-width: 16px;
}

.tree-name {
    color: #d0d0d0;
}

.tree-folder {
    font-weight: normal;
    color: #a0a0a0;
}

.tree-file {
    color: #b0b0b0;
}

.word-count {
    color: #888;
    font-size: 0.9em;
}

.tree-children {
    margin-left: 16px;
    border-left: 1px solid #555;
    padding-left: 8px;
}

.tree-toggle {
    cursor: pointer;
    user-select: none;
    color: #777;
    font-size: 10px;
    margin-right: 3px;
    transition: transform 0.1s ease;
}

.tree-toggle.expanded {
    transform: rotate(90deg);
}

.tree-item.collapsed > .tree-children {
    display: none;
}

.stats {
    margin-top: 5px;
    padding: 5px;
    background: #3a3a3a;
    border-radius: 2px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border: 1px solid #444;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-label {
    color: #888;
    font-size: 0.8rem;
}

.stat-value {
    color: #b0b0b0;
    font-weight: normal;
    font-size: 0.85rem;
}

.timing-info {
    margin-top: 10px;
    padding: 8px;
    background: #3a3a3a;
    border-radius: 2px;
    border: 1px solid #444;
    font-size: 0.8rem;
    color: #888;
}

.timing-info div {
    margin: 2px 0;
}

.timing-label {
    color: #777;
}

.timing-value {
    color: #b0b0b0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.1rem;
    }
    
    .drop-zone {
        padding: 15px;
    }
    
    .tree-container {
        padding: 5px;
    }
    
    .tree-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}