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

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    color: #e1f2e3;
    background: #121110;
    overflow: hidden; /* Σταματάει τα διπλά scrollbars */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 2rem;
    flex-shrink: 0;
}

.logo-group { display: flex; align-items: center; gap: 15px; }
header img { width: 2.5rem; }

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

button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#download-btn { background-color: #93f09e; color: #121110; }
#clear-btn { background-color: #ff5f5f; color: white; }
button:hover { opacity: 0.8; transform: scale(1.05); }

main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px;
    gap: 10px;
    min-height: 0;
}

.editors { display: flex; height: 50%; gap: 10px; }
.edit { position: relative; flex: 1; }

.edit p {
    position: absolute;
    top: 5px;
    right: 10px;
    padding: 2px 8px;
    background: #263238;
    border-radius: 4px;
    font-size: 0.7rem;
    z-index: 5;
}

textarea {
    width: 100%;
    height: 100%;
    background: #263238;
    color: #e1f2e3;
    border: 1px solid #444;
    padding-top: 30px;
    resize: none;
    font-size: 1rem;
}

.view { flex-grow: 1; background: white; border-radius: 5px; overflow: hidden; }
#preview-window { width: 100%; height: 100%; border: none; }

footer {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #121110;
    flex-shrink: 0;
}
footer a { text-decoration: none; color: #e1f2e3; }
