* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
    color: black;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.controls button {
    padding: 10px 18px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.controls button:hover { background-color: #333; }

.editor-row { display: flex; gap: 20px; flex-wrap: wrap; }

.editor-box, .password-box {
    flex: 1;
    min-width: 300px;
    background-color: #fefefe;
    border: 2px solid #ddd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.editor-box:hover, .password-box:hover {
    border-color: black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.editor-header {
    background-color: black;
    color: white;
    padding: 12px 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.editor-tools i {
    margin-left: 12px;
    cursor: pointer;
}

.editor-tools i:hover { color: #f0e68c; }

#input-editor {
    height: 200px !important;
    width: 100% !important;
    border: none !important;
}

#output-editor {
    height: 300px !important;
    width: 100% !important;
    border: none !important;
}

.password-box { margin-top: 20px; }

.password-content { padding: 20px; }

.password-content input {
    width: 100%;
    padding: 10px;
    border: 2px solid black;
    border-radius: 8px;
    font-size: 14px;
    color: #000;
    outline: none;
}

.password-content input:focus {
    border-color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .editor-row { flex-direction: column; }
}