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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

h3 {
    color: #4a5568;
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: 600;
}

.input-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-box p {
    margin-bottom: 15px;
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

textarea {
    height: 300px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn {
    background: linear-gradient(45deg, #48bb78, #38a169);
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 10px;
}

.btn:hover {
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.result-container {
    margin-top: 20px;
}

.result-container label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a5568;
    display: block;
}

#result {
    width: 100%;
    min-height: 100px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-family: monospace;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#result:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Entry row styling */
.entry-row {
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.entry-row input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 10px;
}

.entry-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.entry-row input::placeholder {
    color: #a0aec0;
}

/* Remove button */
.remove-btn {
    background: linear-gradient(45deg, #f56565, #ed8936);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.remove-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

/* Actions container */
.actions {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .input-container {
        flex-direction: column;
        gap: 20px;
    }
    
    textarea {
        height: 200px;
        padding: 12px 15px;
    }
    
    button {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .entry-row {
        padding: 15px;
    }
    
    .entry-row input {
        padding: 10px 12px;
        font-size: 13px;
    }
}