:root
{
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #4a90e2;
    --secondary-bg: #2d2d2d;
    --border-color: #444;
    --success-color: #4caf50;
    --error-color: #f44336;
    --pending-color: #ff9800;
}

body
{
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

#app
{
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

button
{
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

button:hover
{
    opacity: 0.8;
}

button:disabled
{
    background-color: #666;
    cursor: not-allowed;
}

.secondary-btn
{
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.controls
{
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-section
{
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

textarea
{
    width: 100%;
    background-color: #121212;
    color: #ccc;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    resize: vertical;
}

/* Tree View Styling */
.tree-container
{
    background-color: var(--secondary-bg);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.tree-node
{
    margin-left: 20px;
    border-left: 1px solid #444;
    padding-left: 10px;
}

.tree-item
{
    margin: 5px 0;
}

.key-name
{
    font-weight: bold;
    color: var(--accent-color);
}

.translation-box
{
    background-color: #222;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.original-text
{
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    white-space: pre-wrap;
}

.translated-text
{
    white-space: pre-wrap;
}

.node-actions
{
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

.node-actions button
{
    padding: 4px 8px;
    font-size: 11px;
}

.status-badge
{
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 10px;
    text-transform: uppercase;
}

.status-pending { background-color: var(--pending-color); }
.status-translating { background-color: var(--accent-color); }
.status-done { background-color: var(--success-color); }
.status-error { background-color: var(--error-color); }
.status-ignored { background-color: #555; }

/* Modal Styling */
.modal-overlay
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content
{
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
}

.form-group
{
    margin-bottom: 15px;
}

.form-group label
{
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea
{
    width: 100%;
    box-sizing: border-box;
}

.progress-container
{
    background-color: #333;
    border-radius: 10px;
    height: 20px;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.progress-bar
{
    background-color: var(--success-color);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    pointer-events: none;
}
