:root {
    --bg-dark: #0f172a;
    --panel-dark: #1e293b;
    --accent-blue: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
    margin: 0;
    color: var(--accent-blue);
}

.tagline {
    color: var(--text-muted);
    margin: 5px 0 15px 0;
}

.privacy-badge {
    display: inline-block;
    background-color: #047857;
    color: #ecfdf5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.mode-btn {
    background-color: var(--panel-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mode-btn.active, .mode-btn:hover {
    border-color: var(--accent-blue);
    background-color: #1e3a8a;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .workspace {
        grid-template-columns: 1fr;
    }
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

textarea {
    background-color: var(--panel-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 15px;
    height: 400px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

textarea:focus {
    border-color: var(--accent-blue);
}

.stats {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
    text-align: right;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-clear {
    background-color: #475569;
    color: var(--text-main);
}

.btn-copy {
    background-color: #334155;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #0f172a;
}

.btn:hover {
    opacity: 0.9;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
footer {
    text-align: center;
    margin-top: 40px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #f0abfc;
    text-decoration: underline;
}
.kofi-text-button {
    display: inline-block;
    background-color: #29abe2; /* Premium Ko-fi Blue */
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.kofi-text-button:hover {
    background-color: #1f8bae; /* Sleek dark blue when hovered */
    transform: translateY(-2px); /* Gentle tactile lift effect */
    color: #ffffff !important;
}
