* {
    box-sizing: border-box;
}

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

header {
    background-color: white;
    color: #000000;
    padding: 10px 20px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    /* Removed bottom border */
}


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

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

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

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

/* Only editor and password boxes have borders */
.editor-box, .password-box {
    flex: 1;
    min-width: 300px;
    background-color: #fefefe;
    border: 2px solid #000000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.editor-header {
    background-color: #000000;
    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 #000000;
    border-radius: 8px;
    font-size: 14px;
    color: #000;
    outline: none;
}

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

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