body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    position: relative;
    overflow: hidden;
}

/* Elegant background effect */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 255, 130, 0.03) 0px,
        rgba(0, 255, 130, 0.03) 2px,
        transparent 2px,
        transparent 20px
    );
    z-index: 0;
}

.container {
    position: relative;
    background: #1e1e1e;
    padding: 35px;
    border-radius: 12px;
    width: 450px;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(2deg);
    box-shadow: 
        0 15px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 130, 0.25);
    border: 1px solid rgba(0, 255, 130, 0.2);
    z-index: 1;
    backdrop-filter: blur(5px);
}

/* 3D effect for container */
.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 130, 0.3), transparent);
    z-index: -1;
    border-radius: 14px;
    transform: translateZ(-10px);
    filter: blur(10px);
}

textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    background-color: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 8px;
    resize: vertical;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(0, 255, 130, 0.05);
    transition: all 0.3s ease;
    transform: translateZ(10px);
}

textarea:focus {
    outline: none;
    border-color: #00ff82;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(0, 255, 130, 0.4);
    transform: translateZ(20px);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    transform: translateZ(15px);
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: rgba(18, 18, 18, 0.8);
    color: #00ff82;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #00ff82;
    flex-grow: 1;
    min-width: 100px;
    transform: translateZ(5px);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent, 
        transparent, 
        transparent, 
        rgba(0, 255, 130, 0.1)
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

button:hover {
    background-color: rgba(0, 255, 130, 0.15);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 255, 130, 0.4);
    transform: translateZ(15px);
}

button:hover::after {
    top: -100%;
    left: -100%;
}

button:active {
    transform: translateZ(5px);
}

input[type='file'] {
    margin-bottom: 25px;
    padding: 12px;
    color: #e0e0e0;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    width: 100%;
    border: 1px solid #333;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

input[type='file']::-webkit-file-upload-button {
    background-color: rgba(18, 18, 18, 0.8);
    color: #00ff82;
    padding: 10px 15px;
    border: 1px solid #00ff82;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

input[type='file']::-webkit-file-upload-button:hover {
    background-color: rgba(0, 255, 130, 0.15);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 255, 130, 0.3);
}

#outputArea {
    background-color: rgba(8, 18, 13, 0.95);
    cursor: default;
}

#inputArea, #outputArea,#openFile {
    padding: 15px;
    box-sizing: border-box;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* Additional 3D elements for visual enhancement */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 255, 130, 0.05) 50%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: shimmer 3s infinite linear;
    border-radius: 12px;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Media query for responsiveness */
@media (max-width: 500px) {
    .container {
        width: 85%;
        padding: 25px;
    }
}